diff options
| author | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-26 11:43:27 +0100 | 
|---|---|---|
| committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-26 11:43:27 +0100 | 
| commit | 65adcbec2cc9a00a5b0611e34c7141bf4e6d63f7 (patch) | |
| tree | 2a2f353f2f7b0fd6cde035068a2036ab630f688b /framework/Caching/TDbCache.php | |
| parent | a1983c5f49f5ec95da2d3848a0250771a870534d (diff) | |
| parent | 5632770c86d30361fe0c3eefc7d327786b478702 (diff) | |
Merge branch 'jquery' of https://github.com/pradosoft/prado into jquery
Diffstat (limited to 'framework/Caching/TDbCache.php')
| -rw-r--r-- | framework/Caching/TDbCache.php | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Caching/TDbCache.php b/framework/Caching/TDbCache.php index 01962a55..03c6f54f 100644 --- a/framework/Caching/TDbCache.php +++ b/framework/Caching/TDbCache.php @@ -463,12 +463,12 @@ class TDbCache extends TCache  		try {  			$sql='SELECT value FROM '.$this->_cacheTable.' WHERE itemkey=\''.$key.'\' AND (expire=0 OR expire>'.time().') ORDER BY expire DESC';  			$command=$this->getDbConnection()->createCommand($sql); -			return Prado::unserialize($command->queryScalar()); +			return unserialize($command->queryScalar());  		}  		catch(Exception $e)  		{  			$this->initializeCache(true); -			return Prado::unserialize($command->queryScalar()); +			return unserialize($command->queryScalar());  		}  	} @@ -505,7 +505,7 @@ class TDbCache extends TCache  		{  			$command=$this->getDbConnection()->createCommand($sql);  			$command->bindValue(':key',$key,PDO::PARAM_STR); -			$command->bindValue(':value',Prado::serialize($value),PDO::PARAM_LOB); +			$command->bindValue(':value',serialize($value),PDO::PARAM_LOB);  			$command->execute();  			return true;  		}  | 
