Speed Up – Menu Cache

설명

Before you install: this plugin only works with classic themes.

It caches the output of wp_nav_menu(). Block themes do not use that function: they render
navigation with the core/navigation block, which this plugin never sees. On a block theme
the plugin is active and does nothing at all. Since 2022 every default WordPress theme is a
block theme, so check which kind yours is first.

For each menu, wordpress reads data from the database and elaborated the results. This process, repeated at each page view, is a waste time and resource.

This plugin offers a caching solution that reduces this effects on performance.

The only downside is that the menu will not show the active item with a different style. This plugin cache one version of the menu for all pages.

Configurations are not required! You just have to install it and after the plugin does it all, none further action it’s required.

This plugin is very light: only 5 kb.

Caveats

If you are using user-specific dynamic menu items, this plugin will break that functionality, as it will cache the state of the first page load and any changes will not be seen. There is no per-user cache.

설치

  1. Upload the complete speed-up-menu folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

How can i deactivate cache on some menu?

Simply add a string ‘no-cache’ in the menu (eg. in a css class).

후기

2020년 10월 12일
Have been using this plugin for over one year, should have left 5 stars back then! Great plugin, only one of its kind. Thanks!
모든 1 평가 읽기

기여자 & 개발자

“Speed Up – Menu Cache”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Speed Up – Menu Cache”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.0.21

  • Documentation: state clearly that the plugin only works with classic themes. Block themes render navigation through the core/navigation block, which this plugin never sees

1.0.20

  • Fix mobile detection: the user-agent pattern contained invisible characters that silently broke the blackberry, bolt and docomo entries
  • Remove the user-agent cache variation: it never activated, and a menu that must look different on a phone is a stylesheet’s job
  • Fix three strings that could never be translated because they passed a slug instead of the text domain
  • Escape the settings page output
  • Declare minimum requirements: WordPress 6.0 and PHP 7.0

1.0.19

  • Tested up to WordPress 7.0

1.0.18

  • Tested up to WordPress 6.0

1.0.17

  • Tested up to WordPress 5.9

1.0.16

  • Tested up to WordPress 5.7

1.0.15

  • Tested up to WordPress 5.5

1.0.14

  • Tested up to WordPress 5.3

1.0.13

  • Update readme.txt

1.0.12

  • Tested up to WordPress 5.2

1.0.11

  • Improve readme.txt

1.0.10

  • Tested up to WordPress 4.9

1.0.9

  • Merge cache vary for “ie 5-8” and “ie 9” in unique “old ie”
  • Fix exception when no menu are setted

1.0.8

  • Tested up to WordPress 4.7

1.0.7

  • Little fix

1.0.6

  • Little fix

1.0.5

  • Vary cache on mobile or old IE browser version (5-8 and 9)
  • Vary cache on menu theme location

1.0.4

  • Improve readme.txt

1.0.3

  • Improve readme.txt
  • Addded link in appearance menu for purge the cache

1.0.2

  • Fix readme.txt

1.0.1

  • Improve readme.txt

1.0.0

  • Initial release.