Plugin Author
Ramona
(@nextend_ramona)
Hi @davemktg86
The problem happens because of Cache Enabler’s codes. We had opened a topic at them 8 month ago: https://ww.wp.xz.cn/support/topic/filter-before-cache/
because a similar problem occurred with our other plugin.
In short, the problem is that Cache Enabler’s code open an output buffer, but it doesn’t open it soon enough. Because of this, our files are removed from the output – that’s why the styling is missing.
For our test site, the following seemed to have solve the problem:
1. Open \wp-content\plugins\nextend-accordion-menu\nextend\wp-library.php
2. Locate the following code around line 75:
if(is_admin()){
add_action('admin_init', 'nextend_wp_loaded', 3000);
}else if(getNextend('safemode', 0) == 0){
add_action('wp', 'nextend_wp_loaded', 30000);
}else{
add_action('wp_head', 'nextend_wp_loaded');
}
3. Replace it with:
if(is_admin()){
add_action('admin_init', 'nextend_wp_loaded', 3000);
}else if(getNextend('safemode', 0) == 0){
/**
* Fix for KeyCDN cache enabled
* @url https://ww.wp.xz.cn/plugins/cache-enabler/
*/
if (class_exists('Cache_Enabler')) {
add_action('template_redirect', 'nextend_wp_loaded', 1);
} else {
add_action('wp', 'nextend_wp_loaded', 30000);
}
}else{
add_action('wp_head', 'nextend_wp_loaded');
}
4. Save the file and clear Cache Enabler’s cache.
Please let me know if it solves the issue on your end, too.
hi,
thank you very much. I changed the code. I’ll tell you if it work properly tomorrow(in these days i saw the issue after some hours since cache cleaning).
I have only a question: what will happen when there will be a plugin update?
thanks
best regards
Plugin Author
Ramona
(@nextend_ramona)
Hi @davemktg86
If you confirm that the solution works for you, too, we’ll release an update that contains this code in the next couple of days.
Hi!
I confirm it works!!
thank you very much!
only a last question: on my backend I have “Nextend Global Settings” (https://prnt.sc/n795cd) with cache settings. What is this cache? is this only for accordion menu? is this necessary?
thanks
Hi @davemktg86
Thank you for letting us know it fixed the problem.
Yes, the “Clear cache” option will only clear our cache but not third party caches.
Once you clear our cache, it is also highly recommended to clear the cache of your third party plugins as well, otherwise you may still see the previously cached state.
If you would like to know more about this option, you can find its documentation here:
https://accordion-menu.helpscoutdocs.com/article/1123-configuration-in-wordpress
Best regards,
Laszlo.
Plugin Author
Ramona
(@nextend_ramona)
Hi @davemktg86
We just pushed out the update that fixes this problem. Thanks for the report!