You are here

function boost_is_cached in Boost 6

Same name and namespace in other branches
  1. 5 boost.api.inc \boost_is_cached()

Determines whether a given Drupal page is currently cached or not.

Parameters

$path: Current URL

1 call to boost_is_cached()
boost_block in ./boost.module
Implementation of hook_block().

File

./boost.module, line 2895
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_is_cached($path) {

  // no more need to check if path is empty cause it is done on the input of this function before calling it
  // no more need to use drupal_get_normal_path - we do not need the internal path (node/56) - we are fine with aliases
  return file_exists(boost_file_path($path));
}