Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter creactivemind

    (@creactivemind)

    sorry to hear that. i know this can drive people crazy. hope it works out. and let everyone know how if you’ve resolved it! this seems a problem happening widely for years.

    Thread Starter creactivemind

    (@creactivemind)

    After a total of 12 hours, I think I found it out. I recently upgraded my PHP server to 8.1.13 and that’s the reason. I downgraded it to 7.4 and it works fine now. Woocommerce seems incompatible yet with the latest PHP version.

    Thread Starter creactivemind

    (@creactivemind)

    hi Adam. No I’m not using Registration Magin. I’ll fill out the form now. Thanks.

    Thread Starter creactivemind

    (@creactivemind)

    hi, any progress on this? thanks

    Thread Starter creactivemind

    (@creactivemind)

    Care to comment?

    Thread Starter creactivemind

    (@creactivemind)

    thanks, I’m pretty confident Redis object cache is working. I checked it was running by using redis-cli monitor in SSH terminal. My Query Monitor also shows a hit rate of over 90% with the total number of database queries cut down by a third. (from about 330 to 200, although I’m not sure if that’s enough. I’ve copied and pasted the query monitor results below). With everything confirmed to be working, page loading still is slower with the object cache on than without, by about 0.5 second to 1 second. This is confirmed in webpagetest as well, using nine runs. My bare eyes can also feel it since I access these pages very very frequently.

    * my lightest page with the cache on:

    Page Generation Time
    1.8370s
    0.1% of 1,800s limit
    
    Peak Memory Usage
    85,442,544 bytes (81.5 MB)
    4.0% of 2,048 MB server limit
    4.0% of 2,048 MB WordPress limit
    
    Database Queries
    0.0492s
    
    HTTP API Calls
    0.0178s
    
    Object Cache
    93.0% hit rate (11,792 hits, 888 misses)
    
    Persistent object cache plugin in use
    
    Opcode Cache
    Opcode cache in use: Zend OPcache
    Object Cache
    Status
    Connected
    
    Hit Ratio
    93%
    
    Hits
    11795
    
    Misses
    887
    
    Size
    7.88 MB
    
    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
    redis-cache
    blog_meta

    * my lightest page with the cache OFF:

    Page Generation Time
    1.1870s
    0.1% of 1,800s limit
    
    Peak Memory Usage
    94,613,304 bytes (90.2 MB)
    4.4% of 2,048 MB server limit
    4.4% of 2,048 MB WordPress limit
    
    Database Queries
    0.0772s
    
    HTTP API Calls
    None
    
    Object Cache
    Persistent object cache plugin not in use
    
    The Redis object cache extension for PHP is installed but is not in use by WordPress. You should install a Redis plugin.
    
    Opcode Cache
    Opcode cache in use: Zend OPcache

    * my heaviest page with the cache on:

    Page Generation Time
    2.6510s
    0.1% of 1,800s limit
    
    Peak Memory Usage
    101,029,304 bytes (96.3 MB)
    4.7% of 2,048 MB server limit
    4.7% of 2,048 MB WordPress limit
    
    Database Queries
    0.0519s
    
    HTTP API Calls
    None
    
    Object Cache
    96.3% hit rate (24,046 hits, 917 misses)
    
    Persistent object cache plugin in use
    
    Opcode Cache
    Opcode cache in use: Zend OPcache
    Status
    Connected
    
    Hit Ratio
    96.3%
    
    Hits
    24046
    
    Misses
    917
    
    Size
    9.93 MB
    
    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
    redis-cache
    blog_meta
    Non-persistent Groups
    counts
    plugins
    themes
    Metadata
    Client	PhpRedis (v5.3.5)
    Redis Version	6.2.6

    * my heaviest page with the cache OFF:

    Page Generation Time
    2.1662s
    0.1% of 1,800s limit
    
    Peak Memory Usage
    116,432,680 bytes (111.0 MB)
    5.4% of 2,048 MB server limit
    5.4% of 2,048 MB WordPress limit
    
    Database Queries
    0.0728s
    
    HTTP API Calls
    None
    
    Object Cache
    Persistent object cache plugin not in use
    
    The Redis object cache extension for PHP is installed but is not in use by WordPress. You should install a Redis plugin.
    
    Opcode Cache
    Opcode cache in use: Zend OPcache

    I truly hope this cache will work and I can also reap the benefit of Redis object cache. It baffles me that with the number of database queries cut, the page loads slower. Could this be due to some conflict with another type of cache, such as Opcode? By the way WP Rocket is turned off during these tests. Any thoughts would be nice. Thanks.

    • This reply was modified 4 years, 4 months ago by creactivemind.
    Thread Starter creactivemind

    (@creactivemind)

    Well, as rude as your reply is, I think you have a point. So I’ve just edited the star rating to max.

    Much of my lack of success with getting this plugin to work may have to do with my lack of knowledge. So I’d like to ask you for help if you don’t mind.

    I set up my Redis on Docker in Plesk. It says it’s running so I see no issue with it.

    In WordPress, what I did was, I made sure my wp_config.php had the following

    define( ‘WP_CACHE’, true );
    define( ‘WP_CACHE_KEY_SALT’, ‘mydomain.com’ );

    Then I installed your plugin and activiated it. Here’s what I see in the settings.

    Status:	 Connected
    Drop-in:	 Valid
    Filesystem:	 Writeable
    Key Prefix:	mydomain.com
    Connection
    Client:	PhpRedis (v5.3.5)
    Host:	127.0.0.1
    Port:	6379
    Database:	0
    Connection Timeout:	1s
    Read Timeout:	1s
    Redis Version:	6.2.6

    (above is what I see right after activating the plugin, so probably nothing cached. But the loading time did get a bit longer.)

    Is there something I’m doing wrong and not doing? Please bear with me as I’m no coder.

    Thread Starter creactivemind

    (@creactivemind)

    Ah I see. thanks for the detailed response. I suspect the cron job may be the reason. I have my site running on a shared server and an internet search shows my host doesn’t allow “cron tab” which sounds like the cron job you refer to.

    Looks like I’ll need an upgrade to resolve this issue..

    Thread Starter creactivemind

    (@creactivemind)

    wonderful. thank you

Viewing 9 replies - 16 through 24 (of 24 total)