Skip to content

Commit

Permalink
Update CachePoolChain.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptiklemur committed May 31, 2016
1 parent 0c1de9c commit 1b36f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CachePoolChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function save(CacheItemInterface $item)
$result = true;
foreach ($this->getPools() as $poolKey => $pool) {
try {
$result = $result && $pool->save($item);
$result = $pool->save($item) && $result;
} catch (CachePoolException $e) {
$this->handleException($poolKey, __FUNCTION__, $e);
}
Expand All @@ -262,7 +262,7 @@ public function saveDeferred(CacheItemInterface $item)
$result = true;
foreach ($this->getPools() as $poolKey => $pool) {
try {
$result = $result && $pool->saveDeferred($item);
$result = $pool->saveDeferred($item) && $result;
} catch (CachePoolException $e) {
$this->handleException($poolKey, __FUNCTION__, $e);
}
Expand All @@ -279,7 +279,7 @@ public function commit()
$result = true;
foreach ($this->getPools() as $poolKey => $pool) {
try {
$result = $result && $pool->commit();
$result = $pool->commit() && $result;
} catch (CachePoolException $e) {
$this->handleException($poolKey, __FUNCTION__, $e);
}
Expand All @@ -297,7 +297,7 @@ public function clearTags(array $tags)
foreach ($this->getPools() as $poolKey => $pool) {
if ($pool instanceof TaggablePoolInterface) {
try {
$result = $result && $pool->clearTags($tags);
$result = $pool->clearTags($tags) && $result;
} catch (CachePoolException $e) {
$this->handleException($poolKey, __FUNCTION__, $e);
}
Expand Down

0 comments on commit 1b36f9a

Please sign in to comment.