TemplateRepository: Let us clear the instance cache
This commit is contained in:
parent
76e353c9fb
commit
039a6c8660
|
@ -114,4 +114,9 @@ class IcingaTemplateRepository
|
|||
|
||||
return $db->fetchCol($query);
|
||||
}
|
||||
|
||||
public static function clear()
|
||||
{
|
||||
static::clearInstances();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,4 +91,9 @@ trait RepositoryByObjectHelper
|
|||
|
||||
return self::$auth;
|
||||
}
|
||||
|
||||
protected static function clearInstances()
|
||||
{
|
||||
self::$instances = [];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue