Skip to content

Commit

Permalink
Fix for lifetime value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Weseloh committed Oct 30, 2013
1 parent 3867369 commit 74cb8c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/community/Lesti/Fpc/Model/Fpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public function save($data, $id, $tags=array(), $lifeTime=null)
if (!in_array(Mage_Core_Model_Config::CACHE_TAG, $tags)) {
$tags[] = self::CACHE_TAG;
}
if (!$lifeTime) {
$lifeTime = (int)$this->getFrontend()->getOption('lifetime');
}
return $this->_frontend->save((string)$data, $this->_id($id), $this->_tags($tags), $lifeTime);
}

Expand Down

1 comment on commit 74cb8c2

@GordonLesti
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@novalis111 thank you, I have merged it into master

Please sign in to comment.