[ See original thread @ http://drupal.org/node/132351 ]
"Enabling the cache will offer a significant performance boost. Drupal can store and send compressed cached pages requested by anonymous users. By caching a web page, Drupal does not have to construct the page each time someone wants to view it."
However cache is outdated once anonymous users vote on content. Upon refreshing, anonymous users won't be able to see their newly added vote unless they log in or new content is created, clearing the cache.
Would it be possible to clear the cache for a node and pages that includes the node, like frontpage and popular contents pages, when votes are casted through vote-up-down?
Comments
Comment #1
frjo commentedYou can try to add "cache_clear_all()" like the example below in vote_up_down.module, function vote_up_down_vote().
I'm quite sure it will work but I'm interested to here how big a performances hit it will cause on a busy site.
Comment #2
marvil07 commented