When I insert it to functions.php it doesn’t work.
But I believe the interaction is done by your code because I tried to delete this whole piece of code from autoptimizeMain.php:
// hook into a collection of page cache purge actions if filter allows.
if ( apply_filters( 'autoptimize_filter_main_hookpagecachepurge', true ) ) {
$page_cache_purge_actions = array(
'after_rocket_clean_domain', // exists.
'hyper_cache_purged', // Stefano confirmed this will be added.
'w3tc_flush_posts', // exits.
'w3tc_flush_all', // exists.
'ce_action_cache_cleared', // Sven confirmed this will be added.
'aoce_action_cache_cleared', // Some other cache enabler.
'comet_cache_wipe_cache', // still to be confirmed by Raam.
'wp_cache_cleared', // cfr. https://github.com/Automattic/wp-super-cache/pull/537.
'wpfc_delete_cache', // Emre confirmed this will be added this.
'swift_performance_after_clear_all_cache', // swift perf. yeah!
'wpo_cache_flush', // wp-optimize.
'rt_nginx_helper_after_fastcgi_purge_all', // nginx helper.
);
$page_cache_purge_actions = apply_filters( 'autoptimize_filter_main_pagecachepurgeactions', $page_cache_purge_actions );
foreach ( $page_cache_purge_actions as $purge_action ) {
add_action( $purge_action, 'autoptimizeCache::clearall_actionless' );
}
}
And then it worked. W3 Total Cache and AO don’t interact anymore.
I just cannot unhook it through functions.php.
-
This reply was modified 4 years, 9 months ago by
fkoomek.