Revert "Changing where bool is returned"

This reverts commit 8f52cefdcc.
This commit is contained in:
Larry E. Masters 2015-12-14 19:30:42 -06:00
parent 464a266fc7
commit dd211e9158
2 changed files with 3 additions and 3 deletions

View file

@ -278,7 +278,7 @@ class Cache {
* @return void * @return void
*/ */
public static function gc($config = 'default', $expires = null) { public static function gc($config = 'default', $expires = null) {
static::$_engines[$config]->gc($expires); return static::$_engines[$config]->gc($expires);
} }
/** /**
@ -452,7 +452,7 @@ class Cache {
$success = static::$_engines[$config]->delete($settings['prefix'] . $key); $success = static::$_engines[$config]->delete($settings['prefix'] . $key);
static::set(null, $config); static::set(null, $config);
return $success; return (bool)$success;
} }
/** /**

View file

@ -73,7 +73,7 @@ class CacheSession implements CakeSessionHandlerInterface {
* @return bool True for successful delete, false otherwise. * @return bool True for successful delete, false otherwise.
*/ */
public function destroy($id) { public function destroy($id) {
return (bool)Cache::delete($id, Configure::read('Session.handler.config')); return Cache::delete($id, Configure::read('Session.handler.config'));
} }
/** /**