public static function Hash::cacheTags in Acquia Purge 8
Create unique hashes/IDs for a list of cache tag strings.
Parameters
string[] $tags: Non-associative array cache tags.
Return value
string[] Non-associative array with hashed copies of the given cache tags.
5 calls to Hash::cacheTags()
- AcquiaCloudPurger::invalidateTags in src/
Plugin/ Purge/ Purger/ AcquiaCloudPurger.php - Invalidate a set of tag invalidations.
- AcquiaCloudTagsHeader::getValue in src/
Plugin/ Purge/ TagsHeader/ AcquiaCloudTagsHeader.php - Format the given cache tags for the header value representation.
- FastlyBackend::getHashedTags in src/
AcquiaPlatformCdn/ FastlyBackend.php - Salts input tags with the site identifier and hashes them.
- FastlyBackend::invalidateEverything in src/
AcquiaPlatformCdn/ FastlyBackend.php - Invalidate all 'everything' invalidations.
- FastlyBackend::tagsHeaderValue in src/
AcquiaPlatformCdn/ FastlyBackend.php - Format the given cache tags for the header value representation.
File
- src/
AcquiaCloud/ Hash.php, line 42
Class
- Hash
- Helper class that centralizes string hashing for security and maintenance.
Namespace
Drupal\acquia_purge\AcquiaCloudCode
public static function cacheTags(array $tags) {
$hashes = [];
foreach ($tags as $tag) {
$hashes[] = self::hashInput($tag, 4);
}
return $hashes;
}