mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed Object->cacheToFileWithArgs(), please use Object->cacheToFile() with the $arguments param
This commit is contained in:
parent
44354d472f
commit
ea9faeccf7
@ -1062,18 +1062,6 @@ abstract class Object {
|
||||
if(file_exists($file)) unlink($file);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public function cacheToFileWithArgs($callback, $arguments = array(), $lifetime = 3600, $ID = false) {
|
||||
user_error (
|
||||
'Object->cacheToFileWithArgs() is deprecated, please use Object->cacheToFile() with the $arguments param',
|
||||
E_USER_NOTICE
|
||||
);
|
||||
|
||||
return $this->cacheToFile($callback, $lifetime, $ID, $arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads a cache from the filesystem if a valid on is present and within the specified lifetime
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user