function hook_boost_preprocess in Boost 6
Edit document before it is put into the boost cache.
This hook is run at right before the page is cached by boost.
$GLOBALS['_boost_cache_this'] and $GLOBALS['_boost_router_item'] are useful. set $GLOBALS['_boost_cache_this'] = FALSE if you wish to not cache this page.
Parameters
$path: URL path of the document
$data: String containing the data
$extension: file extension type. Use to detect what type of document your operating on.
Return value
$data string containing the document
1 invocation of hook_boost_preprocess()
- boost_cache_set in ./
boost.module - Replaces/Sets the cached contents of the specified page, if stale.
File
- ./
boost.module, line 3764 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function hook_boost_preprocess($path, $data, $extension) {
return $data;
}