You are here

function authcache_poll_cache_clear_all in Authenticated User Page Caching (Authcache) 7.2

Invalidate page cache when a vote was canceled.

Most probably this is an oversight in poll.module. While poll_vote() clears the cache, poll_cancel does not. Drupal core does not serve stale caches to anonymous users only because poll stores votes into $_SESSION effectively deactivating page caching.

1 string reference to 'authcache_poll_cache_clear_all'
authcache_poll_form_poll_cancel_form_alter in modules/authcache_poll/authcache_poll.module
Implements hook_form_FORM_ID_alter().

File

modules/authcache_poll/authcache_poll.module, line 104
Authcache support for poll module.

Code

function authcache_poll_cache_clear_all() {
  cache_clear_all();
}