Skip to content

Releases

v0.3.3

Choose a tag to compare

@ogorzalka ogorzalka released this 27 Nov 09:47
f4c9b7e

A Redis host that does not resolve no longer prints a raw PHP warning. See the changelog.

v0.3.2

Choose a tag to compare

@ogorzalka ogorzalka released this 27 Nov 09:13
b468437

wp_cache_delete_multiple() no longer stops the request on a key that cannot index its result. See the changelog.

v0.3.1

Choose a tag to compare

@ogorzalka ogorzalka released this 24 Nov 15:54
2ac120c

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

Choose a tag to compare

@ogorzalka ogorzalka released this 24 Nov 09:24
024fef3

The package no longer needs Laravel: it runs on a classic WordPress, Bedrock or Pollora. See the changelog.

v0.2.1

Choose a tag to compare

@ogorzalka ogorzalka released this 24 Nov 07:51
9a5673d

Quality release, no change of behaviour.

  • The Semgrep findings are fixed: a named DropInFileException with a message that says what to check, an anchored pattern in the prefetch's request signature, and a justified unserialize().
  • 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 and PhpRedisConnector::credentials() gives what AUTH receives, so both can be tested.

See the CHANGELOG.

v0.2.0

Choose a tag to compare

@ogorzalka ogorzalka released this 23 Nov 15:05
942c330

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 or prefetch.exclude_groups (userlogins by 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

Choose a tag to compare

@ogorzalka ogorzalka released this 23 Nov 09:56
1ed9258

First release: a persistent Redis object cache for WordPress, built for Pollora and Laravel.

  • The object-cache.php drop-in over phpredis, with the full WP_Object_Cache contract, multisite included
  • A Laravel wordpress cache driver (Cache::store('wordpress')), and cache:clear that also empties the site's object cache
  • pollora:object-cache:enable, disable, status and flush
  • 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.