clear cache after collecting information

Author Message

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

Marko Žmak

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?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

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?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.