Skip to content

Commit

Permalink
Merge pull request #204 from tedious/invalidation_bugfix
Browse files Browse the repository at this point in the history
Fixed default invalidation method
  • Loading branch information
tedivm committed Jan 17, 2015
2 parents dc04d65 + 8e0d5a1 commit a60d2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stash/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ protected function validateRecord($validation, &$record)
{
if (is_array($validation)) {
$argArray = $validation;
$invalidation = isset($argArray[0]) ? $argArray[0] : 0;
$invalidation = isset($argArray[0]) ? $argArray[0] : Invalidation::PRECOMPUTE;

if (isset($argArray[1])) {
$arg = $argArray[1];
Expand All @@ -476,7 +476,7 @@ protected function validateRecord($validation, &$record)
$arg2 = $argArray[2];
}
} else {
$invalidation = Invalidation::NONE;
$invalidation = Invalidation::PRECOMPUTE;
}

$curTime = microtime(true);
Expand Down

0 comments on commit a60d2bd

Please sign in to comment.