Skip to content
Permalink
Browse files

Remove else.

By returning early we can avoid the else statement entirely.
  • Loading branch information...
markstory committed Jun 20, 2014
1 parent e683616 commit ffe811935cebb673926e09ffafacf7cb69866269
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/Cake/Cache/Engine/ApcEngine.php
@@ -132,12 +132,12 @@ public function clear($check) {
APC_ITER_NONE
);
apc_delete($iterator);
} else {
$cache = apc_cache_info('user');
foreach ($cache['cache_list'] as $key) {
if (strpos($key['info'], $this->settings['prefix']) === 0) {
apc_delete($key['info']);
}
return true;
}
$cache = apc_cache_info('user');
foreach ($cache['cache_list'] as $key) {
if (strpos($key['info'], $this->settings['prefix']) === 0) {
apc_delete($key['info']);
}
}
return true;

0 comments on commit ffe8119

Please sign in to comment.
You can’t perform that action at this time.