Skip to content

Commit

Permalink
Update object-cache.php
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 24, 2024
1 parent aca22c8 commit 3623ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

// * There is a bug where auth transients are not being `set` or `get` correctly.
// It could be because auth endpoints `die()` early. So let's, skip the cache for auth endpoints.
$is_auth_url = strpos($_SERVER['REQUEST_URI'], '/auth/') === 0;
$is_auth_uri = strpos($_SERVER['REQUEST_URI'], '/auth/') === 0;

// *
// Conditionally, run the script if the correct class exists, and the script has not been disabled.
if ( !$is_auth_url && class_exists( WP_REDIS_USE_RELAY ? 'Relay\Relay' : 'Redis' ) && ( ! defined( 'WP_REDIS_DISABLED' ) || ! WP_REDIS_DISABLED ) ):
if ( !$is_auth_uri && class_exists( WP_REDIS_USE_RELAY ? 'Relay\Relay' : 'Redis' ) && ( ! defined( 'WP_REDIS_DISABLED' ) || ! WP_REDIS_DISABLED ) ):

if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) {
define( 'WP_CACHE_KEY_SALT', '' );
Expand Down

0 comments on commit 3623ec3

Please sign in to comment.