Skip to content

Commit

Permalink
Merge pull request #262 from pantheon-systems/update-readme-0-8-0
Browse files Browse the repository at this point in the history
Update README for v0.8.0
  • Loading branch information
danielbachhuber authored Jan 6, 2020
2 parents a226875 + 33f7a19 commit d9a3625
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Tags:** cache, plugin, redis
**Requires at least:** 3.0.1
**Tested up to:** 5.3
**Stable tag:** 0.7.1
**Stable tag:** 0.8.0
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -107,7 +107,7 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a

## Changelog ##

### 0.8.0 (Unreleased) ###
### 0.8.0 (January 6, 2020) ###
* Uses `flushdb` instead of `flushAll` to avoid flushing the entire Redis instance [[#259](https://github.com/pantheon-systems/wp-redis/pull/259)].

### 0.7.1 (December 14, 2018) ###
Expand Down
3 changes: 2 additions & 1 deletion object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,7 @@ protected function _call_redis( $method ) {
case 'hDel':
return 1;
case 'flushAll':
case 'flushdb':
case 'IsConnected':
case 'exists':
case 'get':
Expand Down Expand Up @@ -1344,7 +1345,7 @@ public function __construct() {
$this->do_redis_failback_flush = (bool) $wpdb->get_results( "SELECT {$col2} FROM {$table} WHERE {$col1}='wp_redis_do_redis_failback_flush'" );
// @codingStandardsIgnoreEnd
if ( $this->is_redis_connected && $this->do_redis_failback_flush ) {
$ret = $this->_call_redis( 'flushAll' );
$ret = $this->_call_redis( 'flushdb' );
if ( $ret ) {
// @codingStandardsIgnoreStart
$wpdb->query( "DELETE FROM {$table} WHERE {$col1}='wp_redis_do_redis_failback_flush'" );
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: getpantheon, danielbachhuber, mboynes, Outlandish Josh
Tags: cache, plugin, redis
Requires at least: 3.0.1
Tested up to: 5.3
Stable tag: 0.7.1
Stable tag: 0.8.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -107,7 +107,7 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a

== Changelog ==

= 0.8.0 (Unreleased) =
= 0.8.0 (January 6, 2020) =
* Uses `flushdb` instead of `flushAll` to avoid flushing the entire Redis instance [[#259](https://github.com/pantheon-systems/wp-redis/pull/259)].

= 0.7.1 (December 14, 2018) =
Expand Down
2 changes: 1 addition & 1 deletion wp-redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Redis
* Plugin URI: http://github.com/pantheon-systems/wp-redis/
* Description: WordPress Object Cache using Redis. Requires the PhpRedis extension (https://github.com/phpredis/phpredis).
* Version: 0.8.0-alpha
* Version: 0.8.0
* Author: Pantheon, Josh Koenig, Matthew Boynes, Daniel Bachhuber, Alley Interactive
* Author URI: https://pantheon.io/
*/
Expand Down

0 comments on commit d9a3625

Please sign in to comment.