Thursday 14 September 2006 1:46:33 am
Hi! I'm trying to implement a new functionality in our system, but have some problems with caching.
In a folder, I've added a new xml-field. This field is listing content in a right menu. Everything is working great, but I've created a custom tag with it's own template which fetch the latest 3 articles from another node. This custom tag is inserted in this xml-field and the content is displayed in the right menu, but when I create a new article in the specific node where the fetch is getting the data, this page with the right menu is not updated with the new article.
I've tried to add both:
{set-block scope=root variable=cache_ttl}0{/set-block} in this custom tag template which is inserted in the xml-field on a page, but it don't work. I have also tried: {cache-block expiry=60} in this custom tag template, but it don't work either. BUT, when I edit the page which contains this xml-field which also got the custom tag inside, and republish, the latest published article are displayed in the fetch. This means, that I have to republish the page to clear the cache for this page everytime I want a new published article to get displayed, which is not so very effective. I can clear the cache for the page everytime a user is visiting this page(in the template), but this will make the system very slow (without caching for the specific page). Does anyone have a solution on how I can fix this problem? K259
|