Releases: pantheon-systems/wp-redis
Releases · pantheon-systems/wp-redis
Version 0.8.2
- Catches exceptions when trying to connect to Redis [#265].
Version 0.8.1
- Adds
WP_REDIS_DEFAULT_EXPIRE_SECONDS
constant to set default cache expire value [#264].
Version 0.8.0
- Uses
flushdb
instead offlushAll
to avoid flushing the entire Redis instance [#259].
Version 0.7.1
- Better support in
wp_cache_init()
for drop-ins like LudicrousDB [#231]. - Cleans up PHPCS issues.
Version 0.7.0
- Adds filterable connection methods to permit use of Predis. See humanmade/wp-redis-predis-client for more details.
Version 0.6.2
- Bug fix: Preserves null values in internal cache.
- Bug fix: Converts numeric values to their true type when getting.
Version 0.6.1
- Bug fix: correctly passes an empty password to
redis-cli
. - Variety of improvements to the test suite.
Version 0.6.0
- Introduces three new WP-CLI commands:
wp redis debug
to display cache hit/miss ratio for any URL;wp redis info
to display high-level Redis statistics;wp redis enable
to create theobject-cache.php
symlink. - Permits a Redis database to be defined with
$redis_server['database']
. - Introduces
wp_cache_add_redis_hash_groups()
, which permits registering specific groups to use Redis hashes, and is more precise than our existingWP_REDIS_USE_CACHE_GROUPS
constant.
Version 0.5.0
- Performance boost! Removes redundant
exists
call fromwp_cache_get()
, which easily halves the number of Redis calls. - Uses
add_action()
and$wpdb
in a safer manner for compatibility with Batcache, which loads the object cache before aforementioned APIs are available. - For debugging purposes, tracks number of calls to Redis, and includes breakdown of call types.
- Adds a slew of more explicit test coverage against existing features.
- For consistency with the actual Redis call, calls
del
instead ofdelete
. - Bug fix: If a group isn't persistent, don't ever make an
exists
call against Redis.
Version 0.4.0
- Introduces
wp redis-cli
, a WP-CLI command to launch redis-cli with WordPress' Redis credentials. - Bug fix: Ensures fail back mechanism works as expected on multisite, by writing to sitemeta table instead of the active site's options table.
- Bug fix: Uses 'default' as the default cache group, mirroring WordPress core, such that
$wp_object_cache->add( 'foo', 'bar' )
===wp_cache_add( 'foo', 'bar' )
.