21 require_once
'Cache/Lite.php';
22 require_once
'Dataface/Application.php';
30 'cacheDir' =>
$app->_conf[
'cache_dir'].
'/dataface_page_cache',
34 if ( !file_exists($params[
'cacheDir']) ){
35 mkdir($params[
'cacheDir'],
true);
37 if ( !file_exists($params[
'cacheDir']) ){
38 throw new Exception(
"Cannot create directory '".$params[
'cacheDir'].
"'", E_USER_ERROR);
42 $this->Cache_Lite($params);
51 $res = mysql_query(
"SHOW TABLE STATUS",
$app->_db);
53 while ( $row = mysql_fetch_array($res) ){
54 if ( (
sizeof(
$tables) === 0 || isset( $lookup[$row[
'Name']] ) ) && strtotime($row[
'Update_time']) > $latestMod ){
55 $latestMod = strtotime($row[
'Update_time']);
65 $this->_setFileName($id,
'default');
66 if ( $mtime < $this->lastModified() ){