From 8e0d5a1d7d34564b5cab0f7d61c25322e4ad510b Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Fri, 16 Jan 2015 22:48:13 -0800 Subject: [PATCH] Fixed default invalidation method --- src/Stash/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stash/Item.php b/src/Stash/Item.php index 3dfd5865..38447c82 100644 --- a/src/Stash/Item.php +++ b/src/Stash/Item.php @@ -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]; @@ -476,7 +476,7 @@ protected function validateRecord($validation, &$record) $arg2 = $argArray[2]; } } else { - $invalidation = Invalidation::NONE; + $invalidation = Invalidation::PRECOMPUTE; } $curTime = microtime(true);