Search for setCache

  1. Search 7.x for setCache
  2. Search 9.5.x for setCache
  3. Search 10.3.x for setCache
  4. Search 11.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/lib/Drupal/Core/Path/AliasManager.php Specify the key to use when writing the cache.
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 Test valid and invalid values as max age.
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 internal, static 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, static entity cache.
EntityStorageInterface::resetCache function core/lib/Drupal/Core/Entity/EntityStorageInterface.php Resets the internal, static 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 Resets the ForumManager index and history.
ForumManagerInterface::resetCache function core/modules/forum/src/ForumManagerInterface.php Resets the ForumManager index and history.
LocaleProjectStorage::resetCache function core/modules/locale/src/LocaleProjectStorage.php Resets the project storage cache.
LocaleProjectStorageInterface::resetCache function core/modules/locale/src/LocaleProjectStorageInterface.php Resets the project storage cache.
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.
TermStorage::resetCache function core/modules/taxonomy/src/TermStorage.php Resets the internal, static entity cache.
VocabularyStorage::resetCache function core/modules/taxonomy/src/VocabularyStorage.php Resets the internal, static entity cache.
WorkspaceRepository::resetCache function core/modules/workspaces/src/WorkspaceRepository.php Resets the cached workspace tree.
WorkspaceRepositoryInterface::resetCache function core/modules/workspaces/src/WorkspaceRepositoryInterface.php Resets the cached workspace tree.

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