Permalink
Browse files

Fixing drop()

  • Loading branch information...
1 parent 14d643f commit e3e02bfcee26737ffd63a4025dbf47ba1c464416 @markstory markstory committed Nov 18, 2009
Showing with 1 addition and 11 deletions.
  1. +1 −11 cake/libs/cache.php
View
@@ -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;
}

0 comments on commit e3e02bf

Please sign in to comment.