• Resolved jojojijijojo

    (@jojojijijojo)


    Hi,

    Can anyone share their redis setup to make it work with Woocommerce successfully?

    I have redis enabled and says connected, but I do not see any noticeable performance gain, not a single ms.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jojojijijojo

    (@jojojijijojo)

    Are people really getting any performance boost?
    To me, the free version of this plugin is pretty much useless.

    View post on imgur.com

    • This reply was modified 5 years, 9 months ago by jojojijijojo.
    Plugin Author Till Krüss

    (@tillkruess)

    @jojojijijojo: If you don’t see a single millisecond improvement, then Redis isn’t connected.

    Can you post your diagnostics to explore this?

    Thread Starter jojojijijojo

    (@jojojijijojo)

    @tillkruess

    Overview
    
    Client:	Predis (v1.1.2)
    Drop-in:	Valid
    Key Prefix:	example.com
    Connection
    
    Status:	Connected
    Host:	127.0.0.1
    Port:	6379
    Database:	0
    Connection Timeout:	1s
    Read Timeout:	1s
    Redis Version:	4.0.9
    Status: Connected
    Client: Predis (v1.1.2)
    Drop-in: Valid
    Disabled: No
    Filesystem: Working
    Ping: PONG
    Errors: []
    PhpRedis: 5.3.1
    Predis: 1.1.2
    Credis: Not loaded
    PHP Version: 7.3.21
    Plugin Version: 2.0.11
    Redis Version: 4.0.9
    Multisite: No
    Global Prefix: "4gS_"
    Blog Prefix: "4gS_"
    WP_REDIS_CLIENT: "PECL"
    WP_REDIS_PREFIX: "example.com"
    WP_CACHE_KEY_SALT: "example.com"
    WP_REDIS_IGNORED_GROUPS: []
    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",
        "blog_meta"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "themes"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "maintenance.php v by ",
        "Redis Object Cache Drop-In v2.0.11 by Till Krüss"
    ]
    

    wp-config

    define( 'WP_CACHE', true ) ;
    
    define('DISALLOW_FILE_EDIT', true);
    define( 'WP_REDIS_IGNORED_GROUPS', [ ]);
    define( 'WP_REDIS_CLIENT', 'PECL' );
    • This reply was modified 5 years, 9 months ago by jojojijijojo.
    Plugin Author Till Krüss

    (@tillkruess)

    Can you try setting this:

    
    define( 'WP_REDIS_CLIENT', 'phpredis' );
    

    How did you benchmark the results?

    Thread Starter jojojijijojo

    (@jojojijijojo)

    @tillkruess

    I benchmarked with loader.io, my VPS has 2 high frequency CPUs, and 4GB memory.

    Also from the plugin metrics here https://imgur.com/IfcsuR3 I assume rate means miss rate right? It averages at 99.7% so barely any hits.

    • This reply was modified 5 years, 9 months ago by jojojijijojo.
    Plugin Author Till Krüss

    (@tillkruess)

    A cache hit ratio of 99% is great.

    Is your Redis server on the same instance as your web server?

    Thread Starter jojojijijojo

    (@jojojijijojo)

    Yes, on the same instance. What does the dotted line on that graph mean?
    I thought that “Ratio: 99.7%” means it missed 99.7% of the time, and that the dotted line showing a miss rate of 26% would be what I would get from the payed version.

    Plugin Author Till Krüss

    (@tillkruess)

    That was a bug in 2.0.11, which was fixed in 2.0.12.

    Have you tried using New Relic or a similar APM tool to see what’s going on. Not seeing any performance gain from even the free version mean something is terribly off with that particular setup.

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

The topic ‘Woocommerce configuration’ is closed to new replies.