Skip to content

Commit

Permalink
READ ONLY should not clear
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbowers committed Apr 3, 2015
1 parent f651a23 commit fde4333
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Stash/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ public function set($data, $ttl = null)
{
try {
if ($this->mode == Mode::READ_ONLY) {
$this->clear();
return false;
} else {
return $this->executeSet($data, $ttl);
Expand Down

0 comments on commit fde4333

Please sign in to comment.