Support » Plugin: Hummingbird – Optimize Speed, Enable Cache, Minify CSS & Defer Critical JS » Way to define pages to cache purge when content is posted

  • Resolved wamcvey


    We have a variety of pages that include content into “pseudo-indexes” using the Query specifier of Elementor’s Posts widget. In some cases, these content indexes are based around Tags, other times Categories or even Authors. Notably, these are not wordpress managed taxonomy pages (so “Clear full cache when post/page is updated” feature isn’t sufficient). Is there a way to pass mapping that defines which pages should be cache purged (e.g. rebuilt) when events like a Page with a particular tag is published? When content is published, we’d really like for the indexes to that content to get updated as well, but we also don’t want to be purging our entire site’s page cache. I’m currently thinking a hook on WordPress’s transition_post_status might be the cleanest option, but that seems a long way from “clean”. If this is the best option, do you have some references or sample code that demonstrates this approach? Additionally, is there documentation for the hummingbird cache management functions that are expected to be stable for custom use?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.