kinsta_cache_purge(); // Or specific purge actions. } } // WP Engine if ( class_exists( 'WPECommon' ) ) { if ( method_exists( 'WPECommon', 'purge_memcached' ) ) { \WPECommon::purge_memcached(); } if ( method_exists( 'WPECommon', 'clear_all_cache' ) ) { // Method can vary \WPECommon::clear_all_cache(); } if ( method_exists( 'WPECommon', 'purge_varnish_cache' ) ) { // Method can vary. \WPECommon::purge_varnish_cache(); } } // Hook for other plugins or developers to use. do_action( 'adpresso_clear_page_cache' ); RuntimeDebugger::add_server_error_log_entry( 'AdPresso: Attempted to clear known page caches due to settings change.' ); } }