• Resolved Rhand

    (@rhand)


    I added these settings jus now to wp-config.php:

    // change the prefix and database for each site to avoid cache data collisions
    define( 'WP_REDIS_PREFIX', 'snaak-prod' );
    define( 'WP_REDIS_DATABASE', 1 ); // 0-15
    
    // reasonable connection and read+write timeouts
    define( 'WP_REDIS_TIMEOUT', 2 );
    define( 'WP_REDIS_READ_TIMEOUT', 2 );

    I restarted Redis

    systemctl restart redis

    I disabled and enabled Redis Object Cache plugin, flushed cache, but still it loads data into database 0

    Client:	PhpRedis (v5.3.7)
    Host:	127.0.0.1
    Port:	6379
    Database:	0
    Connection Timeout:	1s
    Read Timeout:	1s
    Retry Interval:	0ms
    Redis Version:	5.0.3

    Any ideas why?

    • This topic was modified 1 year, 5 months ago by Rhand.
Viewing 1 replies (of 1 total)
  • Thread Starter Rhand

    (@rhand)

    Never mind. Did settings for staging instead of production. Updated matters accordingly now and I checked and see all now

    
    Status:	 Connected
    Filesystem:	 Writeable
    Redis:	 Reachable
    Key Prefix:	snaak-prod
    Connection
    
    Client:	PhpRedis (v5.3.7)
    Host:	127.0.0.1
    Port:	6379
    Database:	0
    Connection Timeout:	2s
    Read Timeout:	2s
    Retry Interval:	0ms
    Redis Version:	5.0.3
Viewing 1 replies (of 1 total)
  • The topic ‘New wp-config.php settings not loaded’ is closed to new replies.