mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
parent
0950959904
commit
4fe6cc6509
@ -25,7 +25,10 @@ class SettingsModel extends ModelBehavior
|
||||
protected $fieldConfig;
|
||||
protected $fieldValues = [];
|
||||
|
||||
private static $instances = [];
|
||||
/**
|
||||
* @var array Internal cache of model objects.
|
||||
*/
|
||||
protected static $instances = [];
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
@ -249,4 +252,13 @@ class SettingsModel extends ModelBehavior
|
||||
{
|
||||
return 'system::settings.'.$this->recordCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the internal memory cache of model instances.
|
||||
* @return void
|
||||
*/
|
||||
public static function clearInternalCache()
|
||||
{
|
||||
static::$instances = [];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user