-
Notifications
You must be signed in to change notification settings - Fork 953
Open
Labels
Description
- I've read and understood the contribution guidelines.
- I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
As soon as a post is saved or updated, the complete cache is invalidated in connection with the plugin "W3 Total Cache".
wordpress-seo/inc/class-wpseo-utils.php
Lines 431 to 443 in 8c16039
| /** | |
| * Clears the WP or W3TC cache depending on which is used. | |
| * | |
| * @since 1.8.0 | |
| */ | |
| public static function clear_cache() { | |
| if ( function_exists( 'w3tc_pgcache_flush' ) ) { | |
| w3tc_pgcache_flush(); | |
| } | |
| elseif ( function_exists( 'wp_cache_clear_cache' ) ) { | |
| wp_cache_clear_cache(); | |
| } | |
| } |
Please describe what you expected to happen and why.
Only the cache of the post that is currently being edited should be invalidated.
How can we reproduce this behavior?
- Install "W3 Total Cache" and "Yoast"
- Activate the "Page Cache"
- Create 2 or more posts
- Load the posts in the cache of "W3 Total Cache"
- Update one of the posts including data from the "Yoast Metabox"
- Save your changes
- Now you will see that every of the posts created earlier are invalidated and no longer cached
Used versions
- WooCommerce version: 6.5.1
- Yoast SEO version: 19.1
- Yoast SEO Premium version: 18.7
- W3 Total Cache version: 2.2.1
Reactions are currently unavailable