285 posts Premium Website Design
  • Has referred 1000+ members
  • Has sold $5M+ on Envato Market
  • Interviewed on an Envato blog
  • Has collected 50+ items on Envato Market
+3 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

1470 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+8 more
ImanGM says

Hey!

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

Cheers, Iman

1458 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
+6 more
fuelthemes says

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

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 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

1277 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+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
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 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

78 posts We are CreateIT. We create IT.
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 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
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+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
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 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

78 posts We are CreateIT. We create IT.
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by