This plug-in stores the HTML data that dynamic WordPress blog has been generated as a page cache by SQLite. After the page cache, it can respond to the request to the ultra-high speed by using a cache without starting the WordPress of processing.

Simple Setup

  • Enable the page cache, select the cache expiration.

Cache exclusion condition


  • Login user


  • Home/Front_page, Fixed Page, Post, Custom Post and WP embedded content card only. Other than this page does not cache.
  • Page you want to exclude from the cache, you can specify from the edit screen of the meta box.
  • Pages that are protected by a password does not cache.
  • PHP error (excluding E_NOTICE, E_STRICT, E_DEPRECATED) occurred page does not cache.

Cache Clear

  • Clear the cache of automatically corresponding post in the articles and editing changes and the like of the comment.
  • The cache is a plugins and widgets such as a change is not clear. If you make these configuration changes, etc., should be cleared to use “Cache Clear” button.


  • When you activate the log, you can easily check the behavior and execution time of the cache. (slower only a little)
  • SQLite database keeps logs for one week.

To further speed-up

Page cache processing of this plugin is processing in PHP and SQLite.
You can also use a faster Expert mode. To use Expert mode you need to edit ‘php.ini’ and add auto_prepend_file.
Or you can edit the .htaccess file and use mod_deflate and mod_expires or mod_pagespeed etc to make it faster.
If you do .htaccess edit, edit from the well studied. Do not forget that you back up your .htaccess file.

plugin load filter is also recommended for speed you do not use the cache.

For more detailed information, there is an introduction page in Japanese. Please translate it in Google Translate etc.

Documentation in Japanese(日本語)


  • Yasakani Cache Settings
  • Cache Exclude Setting of each post
  • Security / Utilities Settings
  • Maintenance
  • Request URL and Cache status Log 100.
  • Lots of aceess from the same IP address List.
  • Statistics (PV / Bot / Popular Post / Referer).
  • File change monitoring


  1. Upload the yasakani-cache folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress
  3. Set up from YASAKANI cache to be added to the Settings menu of Admin mode.


  • This plugin uses the pdo_sqlite module.
  • For Page Cache, “define (WP_CACHE, true);” definition to wp-config.php file. And to generate advanced-cache.php Drop-in file.


June 18, 2017
It's good for cheap and low performace host / shared hosting server :). Definitely better than W3TC. Many thanks to the developer!
Read all 4 reviews

Contributors & Developers

“YASAKANI Cache” is open source software. The following people have contributed to this plugin.


Translate “YASAKANI Cache” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • 2020-4-20
  • Fixed a bug where Hard Reset was not working.
  • Fixed SQL error in per-page cache clearing metabox.


  • 2020-4-8
  • Changed cache processing timing so that it can be used with AMP plugin(https://wordpress.org/plugins/amp/).
  • CSS optimization only for CSS tree shaking (no longer preload)
  • added option to shrink AMP page for amp-custom style
  • WP version 5.1 or higher is required


  • 2020-4-3
  • Changed CSS asynchronous loading from preload to media attribute rewriting (https://www.filamentgroup.com/lab/load-css-simpler/)


  • 2020-3-6
  • fix : CSS tree shaking bug: Converting URL relative path to absolute path in CSS files.


  • 2020-2-21
  • add : Judgment of cache exclusion page from URL substring.
  • add : Add / Delete / Update file change monitoring (size / update date / permission)
  • fix : There was a case where the cache was not updated due to a problem in the cache expiration date judgment process.
  • fix : Use wp_timezone_string () function to get timezone data.


  • 2019-11-29
  • fix : Bug fix that the definition using “not” in css selector was deleted in css tree shaking.


  • 2019-10-9
  • Add Rewrite protection for WordPress address (siteurl) / Site address (home) / other options.


  • 2019-7-26
  • Add callback function information to wp-cron execution log
  • Add REST API Requests and Results to log


  • 2019-7-11
  • Added CSS Tree Shaking feature


  • 2019-5-8
  • fix : Exclusion process when css preload is specified.
  • fix : Add ‘rest_route’ as well as ‘wp-json’ to identify access log of REST API request.


  • 2019-4-4
  • fix : php error in add_autoblocklist function


  • 2019-4-1
  • fix : log filter
  • fix : php error due to static declaration missing


  • 2019-3-28
    Refactored the code and Add gravatar cache(beta).


  • 2019-3-8
    wp5.1 tested and Add post id item to log etc.


  • 2018-10-11
    Add option to exclude JavaScript from asynchronous load defer.


  • 2018-8-14
    changed : Since the gutenberg editor accesses ‘wp-includes/js/tinymce/wp-tinymce.php’, Exclude this as not to be treated as a zero day attack.
    fix : log type mode select bug


  • 2018-8-1
  • Changed : cache to gzip format to reduce cache data capacity and speed up.
  • Changed : asynchronous loading of CSS, JS files.
  • Changed : ob_start processing when saving cache data. (Measures against error of global variable in template file)
  • Changed : setting page user interface (added maintenance function)
  • Abolished : APCu mode


  • 2018-5-7
  • Added small CSS, JS inline embedding and HTML Minify function for page speed improvement.
  • fix : cache clear function.
  • fix : Measures against invalid request URL.


  • 2018-4-11
  • fix : As posting edit screen display was sometimes slowed down, cache status display is limited when post status is “publish”.


  • 2018-3-30
  • Added cache clear button for each post.
  • Change fixed the priority of the filter hook of caching processing to 99999 because the short code might not be executed.


  • 2018-2-16
  • fix PHP error occurred in log mode


  • 2017-12-28
  • Added Log display filter. And added a record of events such as wp-redirect and Server Side HTTP_Request.


  • 2017-11-29
  • Added super fast expert mode using auto_prepend_file (Only when php.ini can be edited)
  • Added zero-day attack blocking function (Only when php.ini can be edited)
  • Added automatic cache clear processing for bbPress forum, topic, reply.


  • 2017-08-02
  • Add Cache HTTP headers with page content.
  • Add Auto block IP mode (simple & fast wordpress security : NULL byte / Directory traversal / Command injection / Brute Force … )
  • Save POST data to log.
  • Change Fixed to easy-to-see log display.


  • 2017-06-20
  • WordPress 4.8 support
  • Add simple access statistics mode.
  • Change log display to main site only. Fixed to easy-to-see log display.


  • 2017-3-27
  • Change Configuration change of setting table.
  • Change Configuration change of log table.
  • Addition of bot block function as optional utility function.
  • Added URL replacement function of images and links in content that can be used when migrating site URL as optional utility function.


  • 2016-09-12
  • fix PHP Error


  • 2016-09-09
  • APC/APCu support(Beta test). You can specify the “SQLite + APC/APCu” as cache storage in case “APC/APCu” is enabled.


  • 2016-09-02
  • change Log display item(REQUEST_URI, HTTP_REFERER) urldecode
  • fix Status of the attachment, such as an image was not able to cash in the case of ‘inherit’
  • fix Processing at the time of invalid cache in a multsite


  • 2016-08-23
  • fix WP_CACHE define replacement process
  • fix DB file path (wp-content/yasakani-cache/yasakani_cache.db).
  • add Apache server .htaccess installation for direct access forbidden to the DB file.
  • add Cache Expiration setting 4 hours
  • add setting form autocomplete=”off” for firefox


  • 2016-08-19 Release


  • 2016-08-17 wordpress.org plugin submit


  • 2016-07-20 Beta Version