Skip to content

WP_REDIS_SERVERLESS_WORKAROUND#596

Open
ustramooner wants to merge 36 commits intorhubarbgroup:developfrom
campaign-in-a-box:WP_REDIS_SERVERLESS_WORKAROUND
Open

WP_REDIS_SERVERLESS_WORKAROUND#596
ustramooner wants to merge 36 commits intorhubarbgroup:developfrom
campaign-in-a-box:WP_REDIS_SERVERLESS_WORKAROUND

Conversation

@ustramooner
Copy link

AWS rds valkey serverless with tenant prefixes - i can't get the scan/keys function to work so have to use this very very clunky workaround. Any suggestions to get it working better i'm open for

tillkruss and others added 30 commits November 5, 2022 16:26
# Conflicts:
#	phpstan-baseline.neon
* Fixed loading textdomain in

* use helper

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
…ubarbgroup#522)

* Add check that redis_version is set

* Fetch Redis server info for replicated connections

* change style

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
* Fix Predis cluster flush

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
…#535)

* Add filter and constant to allow customizing who can manage the plugin

* Update CHANGELOG.md

* Update README.md

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
# Conflicts:
#	CHANGELOG.md
#	includes/object-cache.php
#	languages/redis-cache.pot
#	readme.txt
#	redis-cache.php
@tillkruss
Copy link
Member

Can you explain what tenant prefixes are, the issue with them and how this workaround will fix the issue?

<?php if ( isset( $diagnostics['persistent'] ) ) : ?>
<tr>
<th><?php esc_html_e( 'Persistent Connection:', 'redis-cache' ); ?></th>
<td><code><?php echo esc_html( $diagnostics['persistent'] ? 'Yes' : 'No' ); ?></code></td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure these are translatable.


$san_key = $this->sanitize_key_part( $key );
$derived_key = $derived_keys[ $key ] = $this->fast_build_key( $san_key, $san_group );
if (defined('WP_REDIS_SERVERLESS_WORKAROUND') && WP_REDIS_SERVERLESS_WORKAROUND ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a README entry with explanation

$info['Timeout'] = $wp_object_cache->diagnostics['timeout'] ?? false;
$info['Read Timeout'] = $wp_object_cache->diagnostics['read_timeout'] ?? false;
$info['Retry Interval'] = $wp_object_cache->diagnostics['retry_interval'] ?? false;
$info['Persistent'] = $wp_object_cache->diagnostics['persistent'] ?? false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs several changelog entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants