The list of the last 5 articles is not updated

Author Message

Aleksandar Adam

Tuesday 12 July 2005 12:22:10 pm

I would like to fetch 5 last articles and I have used this line:

let children=fetch('content','tree',hash(parent_node_id,$node.node_id,limit,5,class_filter_type, 'include', class_filter_array, array(2),sort_by,array('published',false()) ))

section name=Child loop=$children sequence=array(bglight,bgdark)
$Child:item.object.name
...etc

for example I have in database

article5
article4
article3
article2
article1

when i load my page/template in web browser for the first time all 5 articles shows up, but if I add for example "article6" and reload my page it doesn't show up. First I have to clear cache memory and then reload and then i have situation which I wanted:

article6
article5
article4
article3
article2

What I want is to update the list of the last 5 articles automatically and not always to clear the cache. I just want to add an article reload the page and article shows.

Any answer will be appreciated.

luis muñoz

Thursday 14 July 2005 3:58:26 am

Probably you have to configure smartviewcache to clean the cache for that class when a new item is published.

Have a look at http://ez.no/ez_publish/documentation/incoming/smart_viewcache_cleaning_system

Aleksandar Adam

Tuesday 19 July 2005 9:27:37 pm

I have tried example (case 1) on the document page:
http://ez.no/products/ez_publish_cms/documentation/incoming/smart_viewcache_cleaning_system

But it didn't worked, and I don't know what to do.

The interesting thing is that when you want to show all forum replies then they are updated but when you want to show the forum then it isn't updated even if I chaged settings in viewcache.ini.append as described in the document.

Any suggestions?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:37:35
Script start
Timing: Jan 19 2025 04:37:35
Module start 'layout'
Timing: Jan 19 2025 04:37:35
Module start 'content'
Timing: Jan 19 2025 04:37:36
Module end 'content'
Timing: Jan 19 2025 04:37:36
Script end

Main resources:

Total runtime1.0690 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 589.2891152.6406
Module start 'layout' 0.00950.0039 741.929739.4922
Module start 'content' 0.01341.0538 781.4219506.5859
Module end 'content' 1.06720.0017 1,288.007812.4375
Script end 1.0689  1,300.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3893160.0003
Check MTime0.00200.1906160.0001
Mysql Total
Database connection0.00120.110910.0012
Mysqli_queries0.778072.7788570.0136
Looping result0.00060.0573550.0000
Template Total0.803775.220.4019
Template load0.00210.196920.0011
Template processing0.801674.989020.4008
Template load and register function0.00030.023610.0003
states
state_id_array0.00130.122510.0013
state_identifier_array0.00170.159820.0009
Override
Cache load0.00160.1456330.0000
Sytem overhead
Fetch class attribute can translate value0.00060.058820.0003
Fetch class attribute name0.00220.201140.0005
XML
Image XML parsing0.00700.652120.0035
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00760.7129160.0005
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs