interface CacheWarmerInterface

Interface for classes able to warm up the cache.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of CacheWarmerInterface

All classes that implement CacheWarmerInterface

1 file declares its use of CacheWarmerInterface
CacheWarmerAggregateTest.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php, line 19

Namespace

Symfony\Component\HttpKernel\CacheWarmer
View source
interface CacheWarmerInterface extends WarmableInterface {

  /**
   * Checks whether this warmer is optional or not.
   *
   * Optional warmers can be ignored on certain conditions.
   *
   * A warmer should return true if the cache can be
   * generated incrementally and on-demand.
   *
   * @return Boolean true if the warmer is optional, false otherwise
   */
  public function isOptional();

}

Members

Namesort descending Modifiers Type Description Overrides
CacheWarmerInterface::isOptional public function Checks whether this warmer is optional or not. 2
WarmableInterface::warmUp public function Warms up the cache. 2