mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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,12 +132,12 @@ class ApcEngine extends CacheEngine {
|
||||||
APC_ITER_NONE
|
APC_ITER_NONE
|
||||||
);
|
);
|
||||||
apc_delete($iterator);
|
apc_delete($iterator);
|
||||||
} else {
|
return true;
|
||||||
$cache = apc_cache_info('user');
|
}
|
||||||
foreach ($cache['cache_list'] as $key) {
|
$cache = apc_cache_info('user');
|
||||||
if (strpos($key['info'], $this->settings['prefix']) === 0) {
|
foreach ($cache['cache_list'] as $key) {
|
||||||
apc_delete($key['info']);
|
if (strpos($key['info'], $this->settings['prefix']) === 0) {
|
||||||
}
|
apc_delete($key['info']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue