function boost_cache_get in Boost 6
Same name and namespace in other branches
- 5 boost.api.inc \boost_cache_get()
Returns the cached contents of the specified page, if available.
Parameters
$path: Current URL
File
- ./
boost.module, line 3680 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_cache_get($path) {
if ($filename = boost_file_path($path)) {
if (file_exists($filename) && is_readable($filename)) {
return file_get_contents($filename);
}
}
return NULL;
}