Skip to content

Instantly share code, notes, and snippets.

View badrange's full-sized avatar
🇺🇦
Слава Україні!

Bernt Andreas Drange badrange

🇺🇦
Слава Україні!
  • Inderes
  • Helsinki
View GitHub Profile
diff --git a/autocache.module b/autocache.module
index fe79548..12c886c 100644
--- a/autocache.module
+++ b/autocache.module
@@ -139,6 +139,11 @@ function _autocache_act_on_update_timing(&$entity, $type) {
*/
function _autocache_act_on_update(&$entity, $type) {
+ // Skip cache clearing when saving "company" tags, as they are referenced from million places.
+ if ($type === 'taxonomy_term' && isset($entity->vocabulary_machine_name) && $entity->vocabulary_machine_name === 'tags') {

Keybase proof

I hereby claim:

  • I am badrange on github.
  • I am badrange (https://keybase.io/badrange) on keybase.
  • I have a public key ASDMc9g7uFE7zIsVZxGlxEF4F4xGkfWBRGACsnVos9qF-Ao

To claim this, I am signing this object: