I am using the paragraphs module with a custom theme I created. I want to figure out how to clear the cache for any page that a specific paragraph appears on. The custom theme is composed of a bunch of templates (i.e. paragraph--paragraph-name.html.twig
) and a *.theme file where I preprocess each of the paragraph types.
THEME_preprocess_paragraph__paragraph_name
I don’t want to disable the entire site’s cache. Can I clear the cache in this file? In this way somehow?