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:
parent
c4fcbc2cbd
commit
5017dbd58d
4
phpBB/phpbb/cache/service.php
vendored
4
phpBB/phpbb/cache/service.php
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user