Search for cacheTags

  1. Search 7.x for cacheTags
  2. Search 9.5.x for cacheTags
  3. Search 8.9.x for cacheTags
  4. Search 10.3.x for cacheTags
  5. Other projects
Title Object type File name Summary
AccessResult::getCacheTags function core/lib/Drupal/Core/Access/AccessResult.php The cache tags associated with this object.
AccessResult::resetCacheTags function core/lib/Drupal/Core/Access/AccessResult.php Resets cache tags (to the empty array).
AccessResultTest::testCacheTags function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::addCacheTags
@covers ::addCacheableDependency
@covers ::getCacheTags
@covers ::resetCacheTags
ArgumentDefaultPluginBase::getCacheTags function core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
ArgumentPluginBase::getCacheTags function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php The cache tags associated with this object.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertViewsCacheTagsTrait trait core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
AssertViewsCacheTagsTrait.php file core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
AssertViewsCacheTagsTrait::assertViewsCacheTags function core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Asserts a view's result & render cache items' cache tags.
AssertViewsCacheTagsTrait::assertViewsCacheTagsFromStaticRenderArray function core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Asserts a view's result & render cache items' cache tags.
BlockComponentRenderArrayTest::testOnBuildRenderEmptyBuildWithCacheTags function core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php @covers ::onBuildRender
BlockContentCacheTagsTest class core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php Tests the Content Block entity's cache tags.
BlockContentCacheTagsTest.php file core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
BlockContentCacheTagsTest::$defaultTheme property core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php The theme to install as the default for testing.
BlockContentCacheTagsTest::$modules property core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php Modules to enable.
BlockContentCacheTagsTest::createEntity function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php Creates the entity to be tested.
BlockContentCacheTagsTest::getAccessCacheContextsForEntity function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
BlockContentCacheTagsTest::getAdditionalCacheTagsForEntity function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php Each comment must have a comment body, which always has a text format.
BlockContentCacheTagsTest::testBlock function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php Tests that the block is cached with the correct contexts and tags.
BlockContentResourceTestBase::getExpectedCacheTags function core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php The expected cache tags for the GET/HEAD response of the test entity.
BlockContentTest::getExpectedCacheTags function core/modules/jsonapi/tests/src/Functional/BlockContentTest.php The expected cache tags for the GET/HEAD response of the test entity.
BlockPageVariant::$blockListCacheTags property core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php The Block entity type list cache tags.
BlockResourceTestBase::getExpectedCacheTags function core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php The expected cache tags for the GET/HEAD response of the test entity.
BlockTest::getExpectedCacheTags function core/modules/jsonapi/tests/src/Functional/BlockTest.php The expected cache tags for the GET/HEAD response of the test entity.
BlockTest::testBlockCacheTags function core/modules/block/tests/src/Functional/BlockTest.php Tests that cache tags are properly set and bubbled up to the page cache.
BulkForm::getCacheTags function core/modules/views/src/Plugin/views/field/BulkForm.php The cache tags associated with this object.
CacheableDependencyInterface::getCacheTags function core/lib/Drupal/Core/Cache/CacheableDependencyInterface.php The cache tags associated with this object.
CacheableDependencyTrait::$cacheTags property core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php Cache tags.
CacheableDependencyTrait::getCacheTags function core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php
CacheableMetadata::getCacheTags function core/lib/Drupal/Core/Cache/CacheableMetadata.php The cache tags associated with this object.
CacheableMetadata::setCacheTags function core/lib/Drupal/Core/Cache/CacheableMetadata.php Sets cache tags.
CacheableMetadataCalculationTest::getCacheTags function core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php The cache tags associated with this object.
CacheableMetadataTest::testAddCacheTags function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php This delegates to Cache::mergeTags(), so just a basic test.
CacheCollectorTest::$cacheTagsInvalidator property core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php The cache tags invalidator.
CachePluginBase::getCacheTags function core/modules/views/src/Plugin/views/cache/CachePluginBase.php Gets an array of cache tags for the current view.
CachePluginBase::getRowCacheTags function core/modules/views/src/Plugin/views/cache/CachePluginBase.php Returns the row cache tags.
CacheTagsChecksumDecorator class core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Wraps an existing cache tags checksum invalidator to track calls separately.
CacheTagsChecksumDecorator.php file core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php
CacheTagsChecksumDecorator::getCurrentChecksum function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Returns the sum total of validations for a given set of tags.
CacheTagsChecksumDecorator::invalidateTags function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Marks cache items with any of the specified tags as invalid.
CacheTagsChecksumDecorator::isValid function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Returns whether the checksum is valid for the given cache tags.
CacheTagsChecksumDecorator::logCacheTagOperation function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Logs a cache tag operation.
CacheTagsChecksumDecorator::reset function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php Reset statically cached tags.
CacheTagsChecksumDecorator::__construct function core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php
CacheTagsChecksumInterface interface core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Provides checksums for cache tag invalidations.
CacheTagsChecksumInterface.php file core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php
CacheTagsChecksumInterface::getCurrentChecksum function core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Returns the sum total of validations for a given set of tags.
CacheTagsChecksumInterface::INVALID_CHECKSUM_WHILE_IN_TRANSACTION constant core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php The invalid checksum returned if a database transaction is in progress.
CacheTagsChecksumInterface::isValid function core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Returns whether the checksum is valid for the given cache tags.
CacheTagsChecksumInterface::reset function core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Reset statically cached tags.

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