Flag requests with non-singular queries for a specific post_type
Flag WooCommerce products to work around various caches
Invalidate post_type caches on transition_post_status
This is work in progress, some of it related to #2.
Will also need to look at nav_menu_items, because those queries run with suppress_filters by-passing our the_posts. Also a very old but still in-use function get_pages does its own thing, but has some filters we can hook into.
In this PR:
This is work in progress, some of it related to #2.
Will also need to look at
nav_menu_items
, because those queries run withsuppress_filters
by-passing ourthe_posts
. Also a very old but still in-use functionget_pages
does its own thing, but has some filters we can hook into.cc @soulseekah