352 posts Premium Website Design
  • Top Monthly Author
  • Trendsetter
  • United States
  • Weekly Top Seller
+7 more
ThemeFusion
says

Hey,

Navigation menu on our theme demos can be very resource hungry especially considering their number of menu items in a menu and the traffic sent from Envato. It can be a dreadful combination for the server.

We were facing this same problem quite regularly but with the help of a fellow author, Asad Khan ( http://themeforest.net/user/ThemeSphere ), came up with a simple solution to cache the navigation menus. This has helped us majorly and our CPU and memory requirement is decreased by more than 50%.

Here is the plugin, https://github.com/mharis/wp-cache-nav-menus

I hope you find this useful.

Install this on top of a cache plugin for best results.

- Muhammad

1891 posts The Last Man Standing
  • Weekly Top Seller
  • Author Level 8
  • Beta Tester
  • Moderator
+10 more
ImanGM
Moderator
says

Hey!

Thanks for sharing :) Does this plugin help us to sell like you too? ;)

Cheers, Iman

1642 posts
  • Elite Author
  • Featured Author
  • 6 Years of Membership
  • Author Level 10
+8 more
fuelthemes
says

Doesn’t other cache plugins handle this? Like WP Super cache for example?

191 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Author Level 8
  • Collector Level 4
+8 more
Artillegence
says

I was facing this problem as well, I had a huge menu (150 items + mega menu) for coming theme. This is working like a charm thanks for sharing guys :D

1368 posts
  • Weekly Top Seller
  • 5 Years of Membership
  • Author Level 6
  • Beta Tester
+5 more
Smartik
says

Thanks for share. I was never thinking to use Transients API, but after reading something about them on WP Codex I think I got some good ideas for use. :P

501 posts
  • Affiliate Level 7
  • Author Level 10
  • Collector Level 2
  • Top Monthly Author
+10 more
pixelentity
says

Why not using Super/Total cache instead ? with page cache enabled and mod_rewrite, there won’t be any php/mysql involved at all since it would be exactly like serving a static html page.

BF

85 posts We are CreateIT. We create IT.
  • Affiliate Level 4
  • Author Level 9
  • Beta Tester
  • Collector Level 2
+7 more
createit-pl
says

Why not using Super/Total cache instead ? with page cache enabled and mod_rewrite, there won’t be any php/mysql involved at all since it would be exactly like serving a static html page. BF

We were having hard time with Super/Total cache and any other plugins like that. The main problem was, that it was operating on the same abstraction layer as the rest of WordPress content. Since we have multiple servers around the world, it was a management nightmare to find where given content comes from, if it’s still from cache or not etc.

What worked for us, was setting two servers (well in fact more :-)): one with full environment for WordPress (mysql, apache and other stuff) and the other one with only nginx installed, acting as reversed proxy. This is extremely fast and supereasy to manage :)

createIT

35 posts
  • Affiliate Level 1
  • Author Level 5
  • Beta Tester
  • Collector Level 2
+3 more
TheMetroGuy
says

Thanks for sharing.

And this will be the epic reply for this thread!


Hey!

Thanks for sharing :) Does this plugin help us to sell like you too? ;)

Cheers, Iman
501 posts
  • Affiliate Level 7
  • Author Level 10
  • Collector Level 2
  • Top Monthly Author
+10 more
pixelentity
says

one with only nginx installed, acting as reversed proxy. This is extremely fast and supereasy to manage :)
Yeah, nginx + proxy_cache stuff would do it as well. We have a simpler setup as in all previews are hosted on the same server/wp network install so a caching plugin was the easier solution for us.

BF

85 posts We are CreateIT. We create IT.
  • Affiliate Level 4
  • Author Level 9
  • Beta Tester
  • Collector Level 2
+7 more
createit-pl
says


one with only nginx installed, acting as reversed proxy. This is extremely fast and supereasy to manage :)
Yeah, nginx + proxy_cache stuff would do it as well. We have a simpler setup as in all previews are hosted on the same server/wp network install so a caching plugin was the easier solution for us. BF

amen :) The best solution is the one that fits you best :)

createIT

by
by
by
by
by
by