1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/16891] Rename constant for event name of deferred purge

PHPBB3-16891
This commit is contained in:
Marc Alexander 2022-01-29 08:51:56 +01:00
parent c4fcbc2cbd
commit 5017dbd58d
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -19,7 +19,7 @@ namespace phpbb\cache;
class service
{
/** @var string Name of event used for cache purging */
private const CACHE_PURGE_EVENT = 'core.garbage_collection';
private const PURGE_DEFERRED_ON_EVENT = 'core.garbage_collection';
/** @var bool Flag whether cache purge has been deferred */
private $cache_purge_deferred = false;
@ -106,7 +106,7 @@ class service
{
if (!$this->cache_purge_deferred)
{
$this->dispatcher->addListener(self::CACHE_PURGE_EVENT, [$this, 'purge']);
$this->dispatcher->addListener(self::PURGE_DEFERRED_ON_EVENT, [$this, 'purge']);
$this->cache_purge_deferred = true;
}
}