Repository navigation
Releases
v0.3.3
v0.3.2
v0.3.1
The drop-in no longer stops the site when the Composer autoloader it names cannot be read by the web server: it stays inert and says why in the PHP error log. status shows the autoloader and flags one in the home directory. See the changelog.
v0.3.0
v0.2.1
Quality release, no change of behaviour.
- The Semgrep findings are fixed: a named
DropInFileExceptionwith a message that says what to check, an anchored pattern in the prefetch's request signature, and a justifiedunserialize(). - Line coverage is back to 100 % and the mutation score to 96 % (49 survivors out of 1 242), and the quality gates of the repository are now blocking (
enforce). DropIn::report()takes the HTTP status as an optional argument andPhpRedisConnector::credentials()gives whatAUTHreceives, so both can be tested.
See the CHANGELOG.
v0.2.0
An opt-in prefetch: the pages of one kind of the front remember the keys they read, and the next one loads them with a single call to Redis instead of one per key.
- Off by default (
prefetch.enabled); bounded (prefetch.max_keys,prefetch.ttl); flushed with the site; never loaded for non-persistent groups orprefetch.exclude_groups(userloginsby default). - Console, administration, AJAX, REST, cron and non-GET requests take no part.
- A value holding an object whose class is not loaded yet is left out and read normally later.
- On a development site with WooCommerce, Redis commands per request went from about 230 to 100-134 (home), 203 to 126 (shop), 168 to 52 (product). A cart and a Store API checkout gave the same results with and without it.
The README describes it: https://github.com/Pollora/object-cache#prefetch. It has not run in production yet and the API may change before 1.0: pin the version.
v0.1.0
First release: a persistent Redis object cache for WordPress, built for Pollora and Laravel.
- The
object-cache.phpdrop-in over phpredis, with the fullWP_Object_Cachecontract, multisite included - A Laravel
wordpresscache driver (Cache::store('wordpress')), andcache:clearthat also empties the site's object cache pollora:object-cache:enable,disable,statusandflush- A flush only removes the site's own keys, never the Redis database; a failing Redis degrades to the request cache
Installing it changes nothing until you run php artisan pollora:object-cache:enable. It has not run in production yet and the API may change before 1.0: pin the version. See the CHANGELOG.