mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding boolean return in Cache::gc
This commit is contained in:
parent
577e1b089f
commit
776c128fe0
1 changed files with 2 additions and 2 deletions
|
@ -275,10 +275,10 @@ class Cache {
|
|||
*
|
||||
* @param string $config [optional] The config name you wish to have garbage collected. Defaults to 'default'
|
||||
* @param int $expires [optional] An expires timestamp. Defaults to NULL
|
||||
* @return void
|
||||
* @return boolean
|
||||
*/
|
||||
public static function gc($config = 'default', $expires = null) {
|
||||
static::$_engines[$config]->gc($expires);
|
||||
return static::$_engines[$config]->gc($expires);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue