From dd211e9158fb029618f83371e8f25121150907ab Mon Sep 17 00:00:00 2001 From: "Larry E. Masters" Date: Mon, 14 Dec 2015 19:30:42 -0600 Subject: [PATCH] Revert "Changing where bool is returned" This reverts commit 8f52cefdccceb44a5e2e705261780a95d971c29c. --- lib/Cake/Cache/Cache.php | 4 ++-- lib/Cake/Model/Datasource/Session/CacheSession.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Cache/Cache.php b/lib/Cake/Cache/Cache.php index 2cba7dadc..078f2f539 100644 --- a/lib/Cake/Cache/Cache.php +++ b/lib/Cake/Cache/Cache.php @@ -278,7 +278,7 @@ class Cache { * @return void */ 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); static::set(null, $config); - return $success; + return (bool)$success; } /** diff --git a/lib/Cake/Model/Datasource/Session/CacheSession.php b/lib/Cake/Model/Datasource/Session/CacheSession.php index 05a604dec..d0540bcb7 100644 --- a/lib/Cake/Model/Datasource/Session/CacheSession.php +++ b/lib/Cake/Model/Datasource/Session/CacheSession.php @@ -73,7 +73,7 @@ class CacheSession implements CakeSessionHandlerInterface { * @return bool True for successful delete, false otherwise. */ public function destroy($id) { - return (bool)Cache::delete($id, Configure::read('Session.handler.config')); + return Cache::delete($id, Configure::read('Session.handler.config')); } /**