summaryrefslogtreecommitdiff
path: root/framework/Data/TSqliteCache.php
diff options
context:
space:
mode:
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);
}
/**