You are here

public function HttpPurgerBase::getCooldownTime in Generic HTTP Purger 8

Get the time in seconds to wait after invalidation.

The value is expressed as float between 0.0 and 3.0. After ::invalidate() finished, the system will automatically wait this time to allow the caching platform in front of Drupal, to catch up (before other purgers kick in).

This value adds up to the total time hint of this purger and therefore the higher this value is, the less processing can happen per request. Platforms that clear instantly (e.g.: via a socket) are best off leaving this at 0.0.

Return value

float The maximum number of seconds - as a float - to wait after invalidation.

Overrides PurgerBase::getCooldownTime

See also

\Drupal\purge\Annotation\PurgePurger::$cooldown_time

\Drupal\purge\Plugin\Purge\Purger\CapacityTrackerInterface::getCooldownTime()

File

src/Plugin/Purge/Purger/HttpPurgerBase.php, line 82

Class

HttpPurgerBase
Abstract base class for HTTP based configurable purgers.

Namespace

Drupal\purge_purger_http\Plugin\Purge\Purger

Code

public function getCooldownTime() {
  return $this->settings->cooldown_time;
}