mirror of
https://gh.wpcy.net/https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-04-24 05:09:10 +08:00
19 lines
1.4 KiB
Markdown
19 lines
1.4 KiB
Markdown
# WordPress performance
|
|
|
|
How to achieve high performance in WordPress?
|
|
|
|
<!-- markdownlint-disable MD013 MD033 -->
|
|
| Item | Tool | Speedup |
|
|
| ----------------------------- | ---------------------------------- | ----------------------------- |
|
|
| [Infrastructure](/WordPress-stack.md) | CPU, disk, web server, PHP ([OPcache](http://php.net/manual/en/opcache.configuration.php#ini.opcache.validate-timestamps)) and DNS | Overall performance |
|
|
| In-memory object cache | Redis, Memcached, APCu | options, post, post meta etc. |
|
|
| Plugins for administration<br>(backup, DB cleanup) | Use WP-CLI instead | **Degrades** performance |
|
|
| Theme and plugins | Cache-aware ones using object cache or transients | |
|
|
| Translations | `tiny-translation-cache` | .mo file parsing |
|
|
| Navigation menus | `tiny-nav-menu-cache` | `wp_nav_menu()` |
|
|
| Post content | `tiny-cache` | `the_content()` |
|
|
| Template output | `tiny-cache` | `get_template_part()` |
|
|
| Widgets | `widget-output-cache` plugin | `dynamic_sidebar()` |
|
|
|
|
This list concentrates on WordPress core generating HTML code.
|
|
Frontend loading (full page cache) is another topic.
|