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.
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.
ConfigEntityStorage::resetCache function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Resets the internal entity 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.
ElementInfoManager::setCachedDefinitions function core/lib/Drupal/Core/Render/ElementInfoManager.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[[api-linebreak]]
FormCacheTest::testSetCacheBuildIdMismatch function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache[[api-linebreak]]
FormCacheTest::testSetCacheWithForm function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache[[api-linebreak]]
FormCacheTest::testSetCacheWithoutForm function core/tests/Drupal/Tests/Core/Form/FormCacheTest.php @covers ::setCache[[api-linebreak]]
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[[api-linebreak]]
FormStateDecoratorBaseTest::testSetCachedWithLogicException function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setCached[[api-linebreak]]
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[[api-linebreak]]
FormStateTest::testSetCachedPost function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::setCached[[api-linebreak]]
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::setCacheOperations function core/tests/Drupal/Tests/PerformanceData.php Sets the cache operations.
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::setCacheTagGroupedLookups function core/tests/Drupal/Tests/PerformanceData.php Sets the grouped cache tag lookups.
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.
StateInterface::resetCache function core/lib/Drupal/Core/State/StateInterface.php Resets the static cache.
StateTest::testResetCache function core/tests/Drupal/Tests/Core/State/StateTest.php Tests both resetCache(), get() and getMultiple() method.

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