Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheWarmerInterface.php

interface CacheWarmerInterface

Interface for classes able to warm up the cache.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface
    • interface \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface extends \Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface

Expanded class hierarchy of CacheWarmerInterface

All classes that implement CacheWarmerInterface

1 file declares its use of CacheWarmerInterface
CompiledClassMetadataCacheWarmer.php in vendor/symfony/serializer/CacheWarmer/CompiledClassMetadataCacheWarmer.php

File

vendor/symfony/http-kernel/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.
     */
    public function isOptional() : bool;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CacheWarmerInterface::isOptional public function Checks whether this warmer is optional or not. 2
WarmableInterface::warmUp public function Warms up the cache. 2
RSS feed
Powered by Drupal