summaryrefslogtreecommitdiff
path: root/framework/Caching/TCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Caching/TCache.php')
-rw-r--r--framework/Caching/TCache.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/framework/Caching/TCache.php b/framework/Caching/TCache.php
index e60cecdd..5d0b11a6 100644
--- a/framework/Caching/TCache.php
+++ b/framework/Caching/TCache.php
@@ -147,7 +147,6 @@ abstract class TCache extends TModule implements ICache, ArrayAccess
public function set($id,$value,$expire=0,$dependency=null)
{
$data=array($value,$dependency);
- $expire=($expire<=0)?0:time()+$expire;
return $this->setValue($this->generateUniqueKey($id),serialize($data),$expire);
}
@@ -163,7 +162,6 @@ abstract class TCache extends TModule implements ICache, ArrayAccess
public function add($id,$value,$expire=0,$dependency=null)
{
$data=array($value,$dependency);
- $expire=($expire<=0)?0:time()+$expire;
return $this->addValue($this->generateUniqueKey($id),serialize($data),$expire);
}