mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove else.
By returning early we can avoid the else statement entirely.
This commit is contained in:
parent
e683616329
commit
ffe811935c
1 changed files with 6 additions and 6 deletions
|
@ -132,14 +132,14 @@ class ApcEngine extends CacheEngine {
|
|||
APC_ITER_NONE
|
||||
);
|
||||
apc_delete($iterator);
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue