I have several different views to take care of the same node type. If I want to cache the views for that node type, and have the cache clear if new node content is added, or current is changed, can I use "After saving new content" for the event? If that can't do both new/changed, does that mean I have to make separate ones for each node type?

Comments

fabsor’s picture

Hi!

You can use the "Content is going to be saved" event. That event triggers on both new content creation and alteration of current content.

wxman’s picture

Thank. I thought that one might. I tried it in a test, but I still wasn't sure.
I'm surprised that there isn't a trigger that fires for either/or new/changed event. I'm also surprised that I never noticed that before.

fabsor’s picture

Status: Active » Fixed

Hi!

I guess this is solved then. If you have any other issues, please open a new issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.