mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16891] Rename constant for event name of deferred purge
PHPBB3-16891
This commit is contained in:
parent
c4fcbc2cbd
commit
5017dbd58d
1 changed files with 2 additions and 2 deletions
4
phpBB/phpbb/cache/service.php
vendored
4
phpBB/phpbb/cache/service.php
vendored
|
@ -19,7 +19,7 @@ namespace phpbb\cache;
|
||||||
class service
|
class service
|
||||||
{
|
{
|
||||||
/** @var string Name of event used for cache purging */
|
/** @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 */
|
/** @var bool Flag whether cache purge has been deferred */
|
||||||
private $cache_purge_deferred = false;
|
private $cache_purge_deferred = false;
|
||||||
|
@ -106,7 +106,7 @@ class service
|
||||||
{
|
{
|
||||||
if (!$this->cache_purge_deferred)
|
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;
|
$this->cache_purge_deferred = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue