Search for setCache

  1. Search 7.x for setCache
  2. Search 9.5.x for setCache
  3. Search 8.9.x for setCache
  4. Search 10.3.x for setCache
  5. Other projects
Title Object type File name Summary
AccessResult::resetCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php Resets cache contexts (to the empty array).
AccessResult::resetCacheTags function core/lib/Drupal/Core/Access/AccessResult.php Resets cache tags (to the empty array).
AccessResult::setCacheMaxAge function core/lib/Drupal/Core/Access/AccessResult.php Sets the maximum age for which this access result may be cached.
AliasManager::setCacheKey function core/modules/path_alias/src/AliasManager.php
CacheableDependencyTrait::setCacheability function core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php Sets cacheability; useful for value object constructors.
CacheableMetadata::setCacheContexts function core/lib/Drupal/Core/Cache/CacheableMetadata.php Sets cache contexts.
CacheableMetadata::setCacheMaxAge function core/lib/Drupal/Core/Cache/CacheableMetadata.php Sets the maximum age (in seconds).
CacheableMetadata::setCacheTags function core/lib/Drupal/Core/Cache/CacheableMetadata.php Sets cache tags.
CacheableMetadataTest::providerSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Data provider for testSetCacheMaxAge.
CacheableMetadataTest::testSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Tests valid and invalid values as max age.
CacheCollectorHelper::setCacheCreated function core/tests/Drupal/Tests/Core/Cache/CacheCollectorHelper.php Setter for the cacheCreated property for use in unit tests.
CacheCollectorHelper::setCacheMissData function core/tests/Drupal/Tests/Core/Cache/CacheCollectorHelper.php Sets data to return from a cache miss resolve.
CacheDecoratorInterface::setCacheKey function core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php Specify the key to use when writing the cache.
ContentEntityStorageBase::resetCache function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Resets the entity cache.
DefaultPluginManager::setCacheBackend function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Initialize the cache backend.
DefaultPluginManager::setCachedDefinitions function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Sets a cache of plugin definitions for the decorated discovery class.
EntityAccessControlHandler::resetCache function core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php Clears all cached access checks.
EntityAccessControlHandler::setCache function core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php Statically caches whether the given user has access.
EntityAccessControlHandlerInterface::resetCache function core/lib/Drupal/Core/Entity/EntityAccessControlHandlerInterface.php Clears all cached access checks.
EntityStorageBase::resetCache function core/lib/Drupal/Core/Entity/EntityStorageBase.php Resets the internal entity cache.
EntityStorageInterface::resetCache function core/lib/Drupal/Core/Entity/EntityStorageInterface.php Resets the internal entity cache.
EntityViewBuilder::resetCache function core/lib/Drupal/Core/Entity/EntityViewBuilder.php Resets the entity render cache.
EntityViewBuilderInterface::resetCache function core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php Resets the entity render cache.
FinishResponseSubscriber::setCacheControlNoCache function core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php Disable caching in the browser and for HTTP/1.1 proxies and clients.
FormBuilder::setCache function core/lib/Drupal/Core/Form/FormBuilder.php Stores a form in the cache.
FormCache::setCache function core/lib/Drupal/Core/Form/FormCache.php Stores a form in the cache.
FormCacheInterface::setCache function core/lib/Drupal/Core/Form/FormCacheInterface.php Stores a form in the cache.
FormCacheTest::testSetCacheAuthUser function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache
FormCacheTest::testSetCacheBuildIdMismatch function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache
FormCacheTest::testSetCacheWithForm function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache
FormCacheTest::testSetCacheWithoutForm function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache
FormState::setCached function core/lib/Drupal/Core/Form/FormState.php Sets this form to be cached.
FormStateDecoratorBase::setCached function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Sets this form to be cached.
FormStateDecoratorBaseTest::testSetCached function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setCached
FormStateDecoratorBaseTest::testSetCachedWithLogicException function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setCached
FormStateInterface::setCached function core/lib/Drupal/Core/Form/FormStateInterface.php Sets this form to be cached.
FormStateTest::testSetCachedGet function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::setCached
FormStateTest::testSetCachedPost function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::setCached
ForumManager::resetCache function core/modules/forum/src/ForumManager.php
ForumManagerInterface::resetCache function core/modules/forum/src/ForumManagerInterface.php Resets the ForumManager index and history.
LocaleProjectStorage::resetCache function core/modules/locale/src/LocaleProjectStorage.php
LocaleProjectStorageInterface::resetCache function core/modules/locale/src/LocaleProjectStorageInterface.php Resets the project storage cache.
PerformanceData::setCacheDeleteCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache delete count.
PerformanceData::setCacheGetCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache get count.
PerformanceData::setCacheSetCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache set count.
PerformanceData::setCacheTagChecksumCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache tag checksum count.
PerformanceData::setCacheTagInvalidationCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache tag invalidation count.
PerformanceData::setCacheTagIsValidCount function core/tests/Drupal/Tests/PerformanceData.php Sets the cache tag isValid count.
Registry::setCache function core/lib/Drupal/Core/Theme/Registry.php Persists the theme registry in the cache backend.
State::resetCache function core/lib/Drupal/Core/State/State.php Resets the static cache.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.