function cacheexclude_init in CacheExclude 5.2
Same name and namespace in other branches
- 6.2 cacheexclude.module \cacheexclude_init()
- 7.2 cacheexclude.module \cacheexclude_init()
Implementation of hook_init().
File
- ./
cacheexclude.module, line 35
Code
function cacheexclude_init() {
$pages = trim(variable_get('cacheexclude_list', ''));
// If the current page is one we want to exclude from the cache,
// set the page caching to false temporarily.
if (strlen($pages) && drupal_match_path($_GET['q'], $pages)) {
$GLOBALS['conf']['cache'] = FALSE;
}
}