Title: cache issue
Last modified: April 2, 2019

---

# cache issue

 *  Resolved [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * (@davemktg86)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/)
 * hi,
 * I changed my cache plugin from WP Super Cache to Cache Enabler, but now every
   morning the accordion menu appears without styles(or with wrong style). I’m using
   Autoptimize plugin too, and I saw that I can fix the menu style issue by cleaning
   autoptimize cache.
    how can I fix this issue definitly? is possible not use nextgen
   cache? or have I to exclude something from autoptimize or cache enabler?
 * thanks in advance
 * best regards

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11382830)
 * Hi [@davemktg86](https://wordpress.org/support/users/davemktg86/)
 * The problem happens because of Cache Enabler’s codes. We had opened a topic at
   them 8 month ago: [https://wordpress.org/support/topic/filter-before-cache/](https://wordpress.org/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://wordpress.org/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.
 *  Thread Starter [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * (@davemktg86)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11385985)
 * 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](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11386098)
 * Hi [@davemktg86](https://wordpress.org/support/users/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.
 *  Thread Starter [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * (@davemktg86)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11390156)
 * 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](https://prnt.sc/n795cd))
   with cache settings. What is this cache? is this only for accordion menu? is 
   this necessary?
 * thanks
 *  [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11390217)
 * Hi [@davemktg86](https://wordpress.org/support/users/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](https://accordion-menu.helpscoutdocs.com/article/1123-configuration-in-wordpress)
 * Best regards,
    Laszlo.
 *  Plugin Author [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11391483)
 * Hi [@davemktg86](https://wordpress.org/support/users/davemktg86/)
 * We just pushed out the update that fixes this problem. Thanks for the report!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘cache issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextend-accordion-menu_ab9186.svg)
 * [Nextend Accordion Menu](https://wordpress.org/plugins/nextend-accordion-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-accordion-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-accordion-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-accordion-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-accordion-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-accordion-menu/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/cache-issue-26/#post-11391483)
 * Status: resolved