• Resolved Alwin

    (@wp-opti)


    Is the cache not automatically cleared after a WordPress update?

    Last night my websites were automatically updated after WordPress Version 6.7.1.

    However, I noticed that WP-Optimize did not automatically clear the cache after this update. Is that correct?

Viewing 1 replies (of 1 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    It doesn’t look like it does, WPO purges in the following circumstances;

    Full cache purge:

    • When changing/updating current themes and parent themes (of child themes)
    • When changing/updating current plugins
    • When turning off the cache feature in WP-Optimize
    • When editing widgets
    • When saving the customizer settings
    • When updating a menu
    • When Autoptimize purges its cache
    • When updating permalink structure
    • When changing cache settings
    • When updating string translations in WPML plugin
    • When updating the ‘posts_per_page’ option
    • When purging Avada theme’s fusion caches
    • When saving any of GetWooPlugins’ settings (Premium)

    This can be changed by hooking into the filter wpo_purge_cache_hooks. E.g.// Add a new action that will trigger a cache purge add_filter( ‘wpo_purge_cache_hooks’, function( $actions ) { $actions[] = ‘my_custom_action’; return $actions; } ); Partial cache purge:

    • When you publish new content or update/edit existing content, the cache for that post/page will be cleared, as well as associated content (category archives, blog archives)
    • When comments are approved, or their status changes
    • When terms are created or updated
    • When changing/updating stock quantity of WooCommerce product or product variation
    • When updating the ‘page_on_front’ option
    • When updating ‘page_for_posts’ option
    • When updating the ‘URLs to exclude from caching’ WP-Optimize caching configuration
    • When trashing a post
    • When running importers
    • When WooCommerce product is on sale (Premium)

    I have also checked the code: https://snipboard.io/NmkMqV.jpg

    I will ask our development team to look at implementing this.

Viewing 1 replies (of 1 total)

The topic ‘cache not automatically cleared after a WordPress update?’ is closed to new replies.