mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: fix typo
This commit is contained in:
parent
21f7eb19e4
commit
360e9df54e
@ -2659,13 +2659,13 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
/**
|
||||
* Flush the cached results for all relations (has_one, has_many, many_many)
|
||||
* Also clears any cached aggregate data
|
||||
*
|
||||
* @param boolean $persistant When true will also clear persistant data stored in the Cache system.
|
||||
*
|
||||
* @param boolean $persistent When true will also clear persistent data stored in the Cache system.
|
||||
* When false will just clear session-local cached data
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function flushCache($persistant = true) {
|
||||
if($persistant) Aggregate::flushCache($this->class);
|
||||
public function flushCache($persistent = true) {
|
||||
if($persistent) Aggregate::flushCache($this->class);
|
||||
|
||||
if($this->class == 'DataObject') {
|
||||
DataObject::$cache_get_one = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user