You are here

function authcache_process_page in Authenticated User Page Caching (Authcache) 7.2

Same name and namespace in other branches
  1. 7 authcache.module \authcache_process_page()

Implements hook_process_page().

Prevent caching pages with status messages on them. Note that due to the fact the messages are only added in template_process_page, we also need to use the process-hook.

Related topics

File

./authcache.module, line 420
Authenticated User Page Caching (and anonymous users, too!)

Code

function authcache_process_page(&$variables) {
  if (!empty($variables['messages']) && authcache_page_is_cacheable()) {
    authcache_cancel(t('Status message on page'));
  }
}