Thursday 25 August 2011 10:20:50 am - 2 replies
Carlos Revillo
Thursday 25 August 2011 10:37:21 am
Hi Jerome. not really what you want, but probably you can define a new cache id and a php class that delete the files you want to. have a look at
https://github.com/ezsystems/ezpublish/blob/master/settings/site.ini#L17
you can then use php bin/php/ezcache.php --clear-id=myfeeds to delete those cache files.
Jerome Despatis
Thursday 25 August 2011 12:04:23 pm
Hey you mean it's exactly what I need :)
As my cache files are in a specific dir into cache, I don't need any class to make the purge (I just need to put path=mydir)
And in order to trigger the delete of the files, I add tags[]=content, therefore, when the content is deleted, then my cache is deleted also
As a result, here are the settings I was looking for:
[Cache] CacheItems[]=djgeofeeds [Cache_djgeofeeds] name=djGeo feeds cache id=djgeofeeds tags[]=contentpath=geofeeds
Thanks again crevillo, you answer quicker on the forum than on irc ;)
You must be logged in to post messages in this topic!