Hi @waredata!
You can exclude pages like the ones mentioned by adding /page/* to the URLs to exclude from caching section at WPO > Cache > Advanced settings.
Hope that helps.
Regards.
Thread Starter
Dev B
(@waredata)
When I enable caching, will the pagination pages /page/1/ etc. be automatically purged after an article update? Will only the homepage be purged? Thank you.
Once you disable caching for the pagination pages, they will no longer be cached.
If you no longer want to exclude the pagination pages, updating an article will only purge the cache for that post. However, you can use the code below to trigger a full site cache purge when a post is created/updated.
// Add a new action that will trigger a cache purge
add_filter( 'wpo_purge_cache_hooks', function( $actions ) {
$actions[] = 'save_post';
return $actions;
} );
You can apply the code by placing it in your theme’s functions.php file or using a code snippet plugin.
See our FAQ to learn more about cache purge triggers.
Regards.