Take the 2-minute tour ×

Im having a serious issue with WP Super cache and UberMenu. For some reason, every now and again, I will view my site, and it will have the default styling applied to ubermenu and then this unstyled version gets stuck in the cache and stays until I clear it.

I clear the cache, and my custom styling from my main stylesheet gets applied and everything is fine for a while. If i turn off caching, its fine. Any ideas what issue may be causing this?

Is there a way to exclude the CSS for the ubermenu from supercache?

Thanks Andy

share|improve this question

1 Answer 1

I've experienced the same issue. I'm not 100% sure yet if this is helping because it's an intermittent issue, but as noted on the plugin author's docs, this is a potential new fix for the problem:

<!-- mfunc wp_nav_menu( $args ); -->
<?php wp_nav_menu( $args ); ?>
<!-- /mfunc --> 


As of version 2.3 of uberMenu, there is a fix the plugin developer created that I've found to work better.

<?php if( function_exists( 'uberMenu_direct' ) ) uberMenu_direct( 'primary' ); ?>

Note: primary is the theme location handle/ID/slug of your WP menu / uberMenu.

Source: http://sevenspark.com/docs/ubermenu-caching

share|improve this answer
Maybe I'm missing smth obvious, but where exactly did you add this code as in my set up I have no custom function that adds the menu, Ubermenu does all the calls. –  IntricatePixels Apr 22 '13 at 17:34
@IntricatePixels - Sorry, I should have provided more information. mfunc is supposed to basically keep whatever function that is wrapped within it dynamic. So this code example would go wherever in your theme (header.php maybe) that you call wp_nav_menu(). For more details check out the WP Super Cache FAQ -> wordpress.org/extend/plugins/wp-super-cache/faq –  Trevor Apr 25 '13 at 6:01

Your Answer


