Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing drop()

  • Loading branch information...
commit e3e02bfcee26737ffd63a4025dbf47ba1c464416 1 parent 14d643f
@markstory markstory authored
Showing with 1 addition and 11 deletions.
  1. +1 −11 cake/libs/cache.php
View
12 cake/libs/cache.php
@@ -180,18 +180,8 @@ function drop($name) {
if (!isset($self->__config[$name])) {
return false;
}
- $last = true;
- $engine = $self->__config[$name]['engine'];
unset($self->__config[$name]);
- foreach ($self->__config as $name => $settings) {
- if ($settings['engine'] == $engine) {
- $last = false;
- break;
- }
- }
- if ($last) {
- unset($self->_Engine[$engine]);
- }
+ unset($self->_engines[$name]);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.