You are here

function boost_get_db in Boost 6

Gets boost info from cache database.

Parameters

$filename: Filename to be looked up in the database

5 calls to boost_get_db()
boost_db_get_age in ./boost.module
boost_db_get_cache_age in ./boost.module
boost_db_prep in ./boost.module
Figure out what is going in the database & put it in
boost_get_generation_time in ./boost.module
Returns the time it took to generate this cached page.
boost_set_db_page_settings in ./boost.module
Sets per page configuration.

File

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

Code

function boost_get_db($filename) {
  $hash = md5($filename);
  return db_fetch_array(db_query("SELECT * FROM {boost_cache} WHERE hash = '%s'", $hash));
}