summaryrefslogtreecommitdiff
path: root/framework/Caching/TDbCache.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-17 14:48:12 -0800
committerDaniel <darthdaniel85@gmail.com>2013-11-17 14:48:12 -0800
commit7a047bedd98b47a82263e81bf62ef3890947f6ac (patch)
treeb5c80dedfb863465d9ed615cb9de21cb29789fb2 /framework/Caching/TDbCache.php
parentb0c2fecd42bd8b95f2535a525b035f27aebde287 (diff)
Micro-optimizations:
Removing unnecessary static functions serialize and unserialize from PradoBase and updating its dependencies with the native php's.
Diffstat (limited to 'framework/Caching/TDbCache.php')
-rw-r--r--framework/Caching/TDbCache.php6
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;
}