function CacheWarmerInterface::isOptional
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.
2 methods override CacheWarmerInterface::isOptional()
- CacheWarmerAggregate::isOptional in vendor/
symfony/ http-kernel/ CacheWarmer/ CacheWarmerAggregate.php - Checks whether this warmer is optional or not.
- CompiledClassMetadataCacheWarmer::isOptional in vendor/
symfony/ serializer/ CacheWarmer/ CompiledClassMetadataCacheWarmer.php - Checks whether this warmer is optional or not.
File
-
vendor/
symfony/ http-kernel/ CacheWarmer/ CacheWarmerInterface.php, line 29
Class
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Namespace
Symfony\Component\HttpKernel\CacheWarmerCode
public function isOptional() : bool;