summaryrefslogtreecommitdiff
path: root/framework/Data/TSqliteCache.php
diff options
context:
space:
mode:
authorxue <>2005-11-16 22:32:52 +0000
committerxue <>2005-11-16 22:32:52 +0000
commit6c1b05deafd9940da5d473800032558df90b118e (patch)
tree3435de08a595fab3ca71ed41f3a88cc9ab6e2995 /framework/Data/TSqliteCache.php
parent65acec4f65ddefcb3e9f9762d958be0539f3f71a (diff)
Key modules are now using registered to application rather than using reserved module names.
Diffstat (limited to 'framework/Data/TSqliteCache.php')
-rw-r--r--framework/Data/TSqliteCache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Data/TSqliteCache.php b/framework/Data/TSqliteCache.php
index 8d59b035..f589f93d 100644
--- a/framework/Data/TSqliteCache.php
+++ b/framework/Data/TSqliteCache.php
@@ -129,8 +129,9 @@ class TSqliteCache extends TComponent implements IModule, ICache
}
else
throw new TConfigurationException('sqlitecache_table_creation_failed',sqlite_error_string(sqlite_last_error()));
- $this->_initialized=true;
$this->_db->query('DELETE FROM '.self::CACHE_TABLE.' WHERE expire<>0 AND expire<'.time());
+ $this->_initialized=true;
+ $application->setCache($this);
}
/**