You are here

function boost_get_time in Boost 6

Checks various timestamps in the database.

Parameters

$table: Database table name

$column: Column containing the time stamp

Return value

int Returns largest time in the table.

1 call to boost_get_time()
boost_has_site_changed in ./boost.module
Checks various timestamps in the database.

File

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

Code

function boost_get_time($table, $column) {
  if (db_table_exists($table)) {
    return (int) db_result(db_query_range("SELECT %s FROM {%s} ORDER BY %s DESC", $column, $table, $column, 0, 1));
  }
  else {
    return 0;
  }
}