Smart cache does not clear cache on all overview pages
-
Hi,
We use “Post Grid by PickPlugins” to display a list of posts on a custom page. After we add or update a post, the list of posts is on the page is updated for admins, but not for not logged-in users.
We have tried clearing it when a post is updated. But the clear cache function does not return anything.
function automate_clearing_overview_pages_cache( $post_id, $post, $update ) { $post_type = $post->post_type; if ( 'post' === $post_type ) { if (function_exists('sg_cachepress_purge_cache')) { $result = sg_cachepress_purge_cache('https://mysite.com/newsroom/'); } return; } return; } add_action( 'save_post', __NAMESPACE__ . '\automate_clearing_overview_pages_cache', 10,3 );
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Smart cache does not clear cache on all overview pages’ is closed to new replies.