• Resolved Hector

    (@hectorpn)


    Hi,

    I have the following set on wp-config after the original WP salts:

    define(‘WP_CACHE’, true);
    define(‘WP_CACHE_KEY_SALT’, ‘www.mysite.com’);
    define(‘WP_REDIS_PASSWORD’,’blahblah123456′);

    Yet the plugin says PASSWORD: NO and cannot connect. It does see the database and recognises PECL. Am I missing something or is the syntax not correct?

    I have read your sticky post too. This is a fresh Redis install so there’s no data in it to flush. I can connect to it via SSH redis-cli all OK

    Many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    What’s showing under diagnostics?

    Make sure you didn’t add the constants after WordPress was loaded.

    Also, WP_CACHE doesn’t need to be set, that’s only for advanced page caching.

    Thread Starter Hector

    (@hectorpn)

    Thanks Till

    Diagnostics:

    ———————————
    PHP Version: 7.1.4
    Multisite: No
    Redis: 3.1.2
    Predis: 1.1.1
    Status: Not Connected
    Client: PECL Extension (v3.1.2)
    WP_CACHE_KEY_SALT: “www.domain.com”
    WP_REDIS_PASSWORD: “*************”
    Drop-in: Valid
    Global Prefix: “wp_”
    Blog Prefix: “wp_”
    Global Groups: [“blog-details”,”blog-id-cache”,”blog-lookup”,”global-posts”,”networks”,”rss”,”sites”,”site-details”,”site-lookup”,”site-options”,”site-transient”,”users”,”useremail”,”userlogins”,”usermeta”,”user_meta”,”userslugs”]
    Ignored Groups: [“counts”,”plugins”,”blog-details”,”blog-id-cache”,”blog-lookup”,”global-posts”,”networks”,”rss”,”sites”,”site-details”,”site-lookup”,”site-options”,”site-transient”,”users”,”useremail”,”userlogins”,”usermeta”,”user_meta”,”userslugs”,”wordfence”,”themes”]

    ———————————

    I had placed the flags in wp-config after the original WP salts. Should I place it all at the top of the file instead?

    Thread Starter Hector

    (@hectorpn)

    I have tried putting this at the very top of the wp-config file, still getting the same NOT CONNECTED and same details in the Diagnostics.

    define(‘WP_CACHE_KEY_SALT’, ‘www.mysite.com’);
    define(‘WP_REDIS_PASSWORD’,’blahblah123456′);

    I placed it even before the MySQL credentials etc

    Thread Starter Hector

    (@hectorpn)

    Duh!!

    I had the Redis service stopped. My fault.

    But now that I have it active, as soon as I enable the Object Cache on the plugin, it logs me out and can only login when I stop the redis service again. Any advice?

    Thanks again Till

    Thread Starter Hector

    (@hectorpn)

    I did a MONITOR through cli on SSH and it shows data, so it is caching. But I can’t login to the WP backend

    Thread Starter Hector

    (@hectorpn)

    Sorry to keep bombarding you.

    I have done a FLUSHDB and still can’t login

    Plugin Author Till Krüss

    (@tillkruess)

    Mhh, I’d make sure it’s Redis that’s preventing you from logging in. Dele LTE the object cache drop-in and see if you can login then.

    Thread Starter Hector

    (@hectorpn)

    I flushed the DB a few times and all is working now. I can login and also doing a MONITOR shows all the data being stored on each request to WP.

    So all good.

    Thanks so very much for the quick replies and the great plugin.

    You can flag this one as SOLVED if you want.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Not recognising pasword?’ is closed to new replies.