plugin-icon

mi13 сache

作者:mi13·
A lightweight plugin for line-by-line caching of WordPress pages. Speeds up site loading by saving static copies of pages.
版本
1.7
最后更新
Jun 3, 2026

Mi13 Cache is a simple and effective plugin for caching WordPress pages. It saves HTML pages as files and serves them on subsequent requests, significantly speeding up site loading.

Key features:

  • Line-by-line caching of HTML pages.
  • Flexible settings: select which page types to cache.
  • Automatic cache clearing when content is updated.
  • Cache status displayed as an HTML comment at the beginning of the file.
  • Cache statistics: file size and number of files.
  • Security: access permission checks and filtering of system pages.
  • Compatibility with custom post types.

Usage

After activation:

Go to Settings Mi13 Cache. Configure the settings: Select page types to cache (home page, posts, pages, categories, archives, custom types). Set the cache lifetime (in seconds; default is 86 400 s / 24 hours). Clear the cache manually using the Clear Cache button (if needed). Save the settings.

You can check the cache status in the page source code:

Open the page source code (press Ctrl+U or right-click “View Page Source”). Look for a comment at the very beginning of the HTML file, like this: <!-- MI13 CACHE --><h3>Settings</h3> Page types — select which content types to cache. Cache lifetime — the interval in seconds after which the cache expires. Clear cache — a button to manually clear all cached files.<h3>HTML comment format</h3>

The plugin adds an HTML comment with information to the beginning of each cached file:

Limitations

Caching does not apply to:

authenticated users; the admin panel; 404 pages; search pages (?s=...); RSS feeds (/feed/); AJAX requests; POST requests; URLs with GET parameters (except paged for pagination).<h3>Troubleshooting</h3>

Issue: the cache is not created. Solution: make sure that:

define('WP_CACHE', true) is present in wp-config.php; WordPress has write permissions for /wp-content/cache/mi13-cache/.

Issue: pages do not update after editing. Solution: manually clear the cache on the settings page.

Issue: access permission error when clearing the cache. Solution: check file permissions in the cache directory.

Security

Permission check (manage_options) before clearing the cache. Caching disabled for authenticated users. Exclusion of system pages (404, search, feed, etc.). Use of the secure WordPress API for file system operations.<h3>Directory structure</h3> Cached files are saved in: /wp-content/cache/mi13-cache/ Each file has the .html extension and a name corresponding to the page URL.
免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 7.0
这个插件是可用的下载,适用于您的站点。