Contributors: chrisvendiadvertisingcom
Tags: cache, caching, disk cache, disk caching, page cache, performance, plugin
Requires at least: 3.9
Tested up to: 4.7.0
Stable tag: 1.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Vendi Cache is a disk-based cache plugin derived from Wordfence's caching engine.
Vendi Cache takes your slow database-driven pages and turns them into very fast static HTML files.
Squirrel image from https://commons.wikimedia.org/wiki/File:Tamias_striatus_CT.jpg
Before activating this plugin, please disable Wordfence's caching system.
The authors of this plugin are not affiliated with Wordfence. The caching engines used by this plugin were ported from Wordfence's code after they decided to remove them from their codebase.
No, but it does replace a feature that they will be removing soon. Wordfence is one of the best security plugins available for WordPress and for about 2 years their product included a very awesome caching engine. In October of 2016 they decided that they would be removing this caching engine which is why this plugin was created.
Yes, the caching engine may be stopped for a given request in several ways. The preferred way (as of 1.2.0) is via a filter: add_filter( \Vendi\Cache\api::FILTER_NAME_DO_NOT_CACHE, '__return_true' )
. For legacy reasons we also still support a public static method \Vendi\Cache\api::do_not_cache()
. Lastly, if you wish to globally stop the caching engine site-wide you can define the WFDONOTCACHE
constant somewhere in your code.
For historical reasons, if defined the global constant is always honored first and cannot be undone via the filter. This might be changed in the future if someone actually has a need for it but generally speaking, constants are used to make global changes by administrators that local code should not be able to undo.
- Bug Fix: Incorrect function signature for error handling.
- Add API class for all future public contracts.
- Add filter
\Vendi\Cache\api::FILTER_NAME_DO_NOT_CACHE
(preferred) and function\Vendi\Cache\api::do_not_cache()
(legacy) to allow people to disable caching per request. - Add
cache_stats
class to use instead of array, make strings translatable. - Add
clear_entire_cache
to public API. - Deprecate Vendi\Cache\Legacy\wordfence::do_not_cache() in favor of above.
- Do not cache if PHP throws a fatal exception or error in someone else's code.
- Inlined a PHP constant
- Fixed a couple of typos (props laxbobber)
- First public release
- First private beta.