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.