function boost_is_cached in Boost 5
Same name and namespace in other branches
- 6 boost.module \boost_is_cached()
Determines whether a given Drupal page is currently cached or not.
File
- ./boost.api.inc, line 48 
- Implements the Boost API for static page caching.
Code
function boost_is_cached($path) {
  $path = empty($path) ? BOOST_FRONTPAGE : $path;
  $alias = drupal_get_path_alias($path);
  $path = drupal_get_normal_path($path);
  // normalize path
  // TODO: also determine if alias/symlink exists?
  return file_exists(boost_file_path($path));
}