summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/TSqlMapConfig.php
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-05-23 07:52:15 +0000
committergodzilla80@gmx.net <>2009-05-23 07:52:15 +0000
commit362aea9c8764437119d09eb6343851db4298a035 (patch)
tree449e390bfb592336ed13e350f6dac38f454b2c4d /framework/Data/SqlMap/TSqlMapConfig.php
parente4587335b8c79bc2dc726da4f39ef43a0034247f (diff)
Fixed Issue#161 - SqlMap add cache dependencies if TApplicationMode Debug/Normal
Diffstat (limited to 'framework/Data/SqlMap/TSqlMapConfig.php')
-rw-r--r--framework/Data/SqlMap/TSqlMapConfig.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Data/SqlMap/TSqlMapConfig.php b/framework/Data/SqlMap/TSqlMapConfig.php
index cdf6b541..c57ab40e 100644
--- a/framework/Data/SqlMap/TSqlMapConfig.php
+++ b/framework/Data/SqlMap/TSqlMapConfig.php
@@ -49,7 +49,7 @@ class TSqlMapConfig extends TDataSourceConfig
$cache = $this->getApplication()->getCache();
if($cache !== null) {
$cache->delete($this->getCacheKey());
- }
+ }
}
/**
@@ -62,7 +62,10 @@ class TSqlMapConfig extends TDataSourceConfig
{
$cache = $this->getApplication()->getCache();
if($cache !== null) {
- return $cache->set($this->getCacheKey(), $manager);
+ $dependencies = null;
+ if($this->getApplication()->getMode() !== TApplicationMode::Performance)
+ $dependencies = $manager->getCacheDependencies();
+ return $cache->set($this->getCacheKey(), $manager, 0, $dependencies);
}
}
return false;