Forums / Developer / Caching causing problem for XML feed / Comment49013
Łukasz Serwatka
Wednesday 30 January 2008 12:23:12 am
I assume that you have build some fetch functions and you want to refresh content when source changed.
You can either disable view cache for that template:
{set-block scope=global variable=cache_ttl}0{/set-block}
http://ez.no/Exponential/documentation/incoming/how_to_set_cache_expire_time_or_disable_cache_in_template
Or introduce a TTL variable in your PHP that will check last update and current time, then perform view cache clearing.
// Clear for node with ID 123 $nodeID = 123; eZContentCache::cleanup( array( $nodeID ) );
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog