plugin-icon

Gambit Cache Menus

제작자: Benjamin Intal·
Shave off a few milliseconds on your site loading time
버전
1.0
최근 업데이트일
Sep 19, 2014
Gambit Cache Menus

Gambit Cache Menus caches the menus that you use in your front end. This may not be much (an estimate of 18 milliseconds per menu), but if you have large multilevel menus, and a lot of site visitors, then the speed savings may bring a lot of benefits.

Just install and activate the plugin, there are no settings page.

A menu rendered normally takes around 0.02 seconds; activating this plugin reduces this step to 0.002 seconds.

Features

  • Shaves off 18ms per menu
  • Uses the Transient API
  • Lightweight
  • Cleanly coded plugin

How Does it Work

It’s all about the Transient API. When a menu is rendered in the front end, the rendered menu is saved as a transient for caching. Future menu renderings use this cached copy afterwards. When the menu is updated, or when menu locations are changed, the transient is forcibly expired to make way for the updated menu.

This Is Also a Tutorial

Transients are cool. If you’re not familiar with them then we documented the code well so that you can check it out.

There should be a companion tutorial about Transients soon.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.0.38
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.