I am trying to:
Our sites all run on a server managed by SpinupWP where page caches are purged upon updating a post with the
transition_post_status
hook. We've noticed that when updating a post whose sole change is to change a meta managed by Toolset that the page cache is not purged, leading us to believe that in such a circumstance Toolset is somehow changing how the post is updated, and not calling the
I expected to see:
That the updating of a post even with just Toolset meta changing would still result in the calling of the
transition_post_status
hook.
Instead, I got:
Based on the fact that the page cache was not purged, I believe that the
transition_post_status
hook was never called in such a post update where only Toolset meta changed.
Question:
Is this correct behavior, to not call the
transition_post_status
hook, meaning that we need to write a bridge plugin to purge the page cache based on a hook in Toolset itself? If so, what hook in Toolset would you recommend? Or is this a bug, that the
You should try to adjust the code within the save_post hook as required and I think thats be best hook to use as save_post hook should be fired every time you save/update the post from backend.