mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
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);
|
return $db->fetchCol($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function clear()
|
||||||
|
{
|
||||||
|
static::clearInstances();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,4 +91,9 @@ trait RepositoryByObjectHelper
|
|||||||
|
|
||||||
return self::$auth;
|
return self::$auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static function clearInstances()
|
||||||
|
{
|
||||||
|
self::$instances = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user