Remove else.

By returning early we can avoid the else statement entirely.
This commit is contained in:
mark_story 2014-06-20 16:07:47 -04:00
parent e683616329
commit ffe811935c

View file

@ -132,12 +132,12 @@ class ApcEngine extends CacheEngine {
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;