On this page
Cache Tag Purging
Last updated on
19 October 2021
This module provides a Drupal 8 service to interact with the Akamai Content Control Utility.
While the service can be used by developers in isolation, most users should install the Purge module. Purge will take care of invalidating caches automatically when content is updated.
Cache Tag Blacklist
Numerous cache tags are attached to any given page and queued for expiration when changes are made to that page.
Below is a cache tag blacklist to get started to limit Akamai purge requests to node changes.
4xx-response
theme_registry
route_match
routes
config:
node_list
user
migration_
local_
entity_
workflow_
element_
contextual_links_
link_relation_
content_moderation_
webform_submission_list
redirect_list
Setup
- Setup Akamai (See Getting Started)
- Install Purge module
- Visit Configuration > Akamai > Akamai Settings
- Enable Edge-Cache-Tag Header and Akamai Logging, and add cache tag blacklist for filtering tags output in the HTTP page response header
Note: This list will limit the cache tags output in the HTTP response header. This is helpful to limit tags that could lead to unexpected invalidations or result in Akamai API failures due to header response size (limit is 8192 bytes).
- Install Purge module
- Enable Purge, Purge UI, Late runtime processor, and Core tags queuer modules
- Visit Configuration > Development > Performance > Purge
- Click Add purger
- Select Akamai Tag Purger and click Add
- Under Queue click Core tags queuer > Configure
- Add the cache tag blacklist from above to limit the cache tags that will be queued to purge automatically and send CCU API requests to Akamai
Verification
- Visit any given node and verify the Edge-Cache-Tag HTTP Response Header is present
- Make an update to any given node
- Verify node-specific cache tag(s) are sent to CCU API to purge
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion