mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: merged patch from simon_w. Removed unnesscary comments
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70494 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
80fe8fff03
commit
ee77297762
@ -516,10 +516,6 @@ class Object {
|
|||||||
Object::$extraStatics[$className]['extensions'] = array_diff(Object::$extraStatics[$className]['extensions'], array($extensionName));
|
Object::$extraStatics[$className]['extensions'] = array_diff(Object::$extraStatics[$className]['extensions'], array($extensionName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// CACHE METHODS (added by simon_w (simon -at- simon -dot- geek -dot- nz))
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a current cache from the filesystem, if it can.
|
* Loads a current cache from the filesystem, if it can.
|
||||||
*
|
*
|
||||||
@ -606,8 +602,6 @@ class Object {
|
|||||||
* @param string|int $id An id for the cache
|
* @param string|int $id An id for the cache
|
||||||
* @return mixed The cached return of the method
|
* @return mixed The cached return of the method
|
||||||
*/
|
*/
|
||||||
// I know this is almost exactly the same as cacheToFile, but call_user_func_array() is slow.
|
|
||||||
// Which is why there's two separate functions
|
|
||||||
public function cacheToFileWithArgs($callback, $args = array(), $expire = 3600, $id = false) {
|
public function cacheToFileWithArgs($callback, $args = array(), $expire = 3600, $id = false) {
|
||||||
if(!$this->class) {
|
if(!$this->class) {
|
||||||
$this->class = get_class($this);
|
$this->class = get_class($this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user