Skip to content

Commit

Permalink
Fix set() to use actual ttl and not timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobstel committed Mar 17, 2011
1 parent fc09f43 commit 868eebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/Cache.php
Expand Up @@ -17,7 +17,7 @@ public function getStore() {

public function set($key, $value, $ttl = 0, $generation_time = NULL) {
$vo = new Cache_Value($value, $ttl, $generation_time = NULL);
$result = $this->store->set($key, $vo, $vo->getExpirationTimestamp() + $vo->getGenerationTime());
$result = $this->store->set($key, $vo, $vo->getTtl() + $vo->getGenerationTime());
$this->unlock($key);
return $result;
}
Expand Down

0 comments on commit 868eebe

Please sign in to comment.