Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged


Here's some code that I use to clear Acquia varish via the Purge / Acquia purge modules when a pdf with the same name is uploaded. You could expand on this to clear the styles cache as well. /** * Implements hook_entity_update(). */ function my_module_entity_update(EntityInterface $entity) { $type = $entity->getEntityTypeId(); if ($type != 'file') ...


Is this causing a bug for you, or are you just trying to understand how it works at all? Making the token system integrate with the cache system happened very late in the Drupal 8 development cycle (see Note that if that optional Token::replace(…, …, …, BubbleableMetadata $bubbleable_metadata = NULL) argument is not ...

Only top voted, non community-wiki answers of a minimum length are eligible