Forums / Developer / clear cache after collecting information
Marko Žmak
Saturday 09 January 2010 9:18:44 am
On my site I have a poll which displays it's results in its line and full view. But when people vote for this poll, the view caches are not cleared so in the line and full views the old results remain.
How can I make eZ clear the cache after voting?
P.S. Setting cache_ttl to 0 is not an acceptable sollution because I do want my polls to be cached via view cache.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Gaetano Giunta
Saturday 09 January 2010 2:35:46 pm
You can take a look at how ezstarrating does it - basically clearing the cache of the node when the user votes
Principal Consultant International Business Member of the Community Project Board
Saturday 09 January 2010 3:04:55 pm
Yes that's what I want, but how do I make eZ clear the caches after submiting the poll data to collect info module?
Tuesday 12 January 2010 10:41:56 pm
So, is there any clean way to make eZ clear the cache after submiting the poll data or do I have to make a hack in eZ?