summaryrefslogtreecommitdiff
path: root/framework/Data
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
parent65acec4f65ddefcb3e9f9762d958be0539f3f71a (diff)
Key modules are now using registered to application rather than using reserved module names.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TMemCache.php1
-rw-r--r--framework/Data/TSqliteCache.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php
index 73eec99f..4d952551 100644
--- a/framework/Data/TMemCache.php
+++ b/framework/Data/TMemCache.php
@@ -111,6 +111,7 @@ class TMemCache extends TComponent implements IModule, ICache
if($application instanceof IApplication)
$this->_prefix=$application->getUniqueID();
$this->_initialized=true;
+ $application->setCache($this);
}
/**
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);
}
/**