• Hi asadkn,

    The inc/admin/cache.php file does not seem to contain the WP-Optimize code to automatically flush the cache for that plugin. Maybe you would like to add that piece of code in the next update?

    Looking forward to your reply ??

    Thanks in advance.

    P.S. I tried to add this piece of code, but it did not seem to work:

    // WP-Optimize
    if (class_exists(‘\WP_Optimize’) && is_callable([‘\WP_Optimize’, ‘clear_cache’])) {
    \WP_Optimize::clear_cache();
    }

Viewing 1 replies (of 1 total)
  • Thread Starter ms100

    (@ms100)

    I am not an educated coder but this seems to work…!

    // WP Optimize
    if (class_exists(‘WP_Optimize’) && is_callable(array(‘WP_Optimize’, ‘get_page_cache’), ‘purge’)) {
    WP_Optimize()->get_page_cache()->purge();
    }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.