function hook_authcache_preclude in Authenticated User Page Caching (Authcache) 7.2
Prevent that that next page request is served from the cache.
Return value
string A translated string specifying the reason of exclusion or null.
4 functions implement hook_authcache_preclude()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- authcache_authcache_preclude in ./
authcache.module - Implements hook_authcache_preclude().
- authcache_builtin_test_authcache_preclude in modules/
authcache_builtin/ tests/ authcache_builtin_test.module - Implements hook_authcache_preclude().
- authcache_relation_authcache_preclude in modules/
authcache_relation/ authcache_relation.module - Implements hook_authcache_preclude().
- authcache_test_authcache_preclude in tests/
authcache_test.module - Implements hook_authcache_preclude().
1 invocation of hook_authcache_preclude()
- authcache_exit in ./
authcache.module - Implements hook_exit().
File
- ./
authcache.api.php, line 90 - Authcache API documentation.
Code
function hook_authcache_preclude() {
// After a POST, do not serve the next page request from cache.
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
return t('POST request');
}
}