• benwoony

    (@benwoony)


    Hi!

    Recently, I noticed that the Status for my object cache is always disabled. I have not changed my set up at all, so I’m not quite sure what happened. I hope the following information helps:

    Info on my environment that I think may be relevant:

    - WordPress is running in a docker container
    - Redis is running in a separate container
    - Redis and WordPress run on the same docker network as each other (and always have)
    - WordPress runs behind Traefik (and always has)
    - I use the CloudFlare plugin, with the default WordPress settings (and always have)
    - I have no other caching plugins

    This environment has worked for years! I have not changed anything.

    But now, the status page even with the Object Cache enabled the object cache shows this:

    Status: DisabledFilesystem: WriteableRedis: Reachable

    The status page gives me the option to Disable Object Cache, which gives me the same status as above. When I click Enable Object Cache, it also gives me the above!

    The Diag page shows this:

    Status: Disabled 
    Client: Predis (v2.4.0)
    Drop-in: Valid
    Disabled: Yes
    PhpRedis: Not loaded
    Relay: Not loaded
    Predis: 2.4.0
    Credis: Not loaded
    PHP Version: 8.3.30
    Plugin Version: 2.7.0
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: 0
    Filesystem: Writable
    WP_REDIS_DISABLED: true
    WP_REDIS_HOST: "redis"
    WP_REDIS_PORT: 6379
    WP_REDIS_DATABASE: 0
    WP_REDIS_TIMEOUT: 1
    WP_REDIS_READ_TIMEOUT: 1
    WP_REDIS_PLUGIN_PATH: "/var/www/html/wp-content/plugins/redis-cache"
    Drop-ins: [ "Redis Object Cache Drop-In v2.7.0 by Till Krüss" ]

    Things I’ve tried:

    Disabling and Re-enabling the object cacche
    Deleting object-cache.php
    Removing the plugin altogether, confirming object-cache.php is gone and reinstalling
    Stopping the redis container, deleting everything, and restarting the redis container
    redis-cli FLUSHALL
    Change timeouts to 3 and 5
    Changed the redis database to 1 and 2
    Forcing <span style="font-family: inherit; font-size: 0.8rem; text-align: initial;">WP_REDIS_DISABLED</span> in wp-config.php to false
    Purged all my Cloudflare caching

    I hope this is enough information for you to help me.

    Thank you in advance.

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

    (@tillkruess)

    Hey!

    Status: Disabled means the object-cache.php drop-in is not in place.

    Redis: Reachable means your config is ready to go, so just copy the object-cache.php from the redis-cache plugin folder to your wp-contents folder.

    You might have extreme opcache file caching on in PHP and it doesn’t detect any file changes, try restarting PHP-FPM.

    Thread Starter benwoony

    (@benwoony)

    Till,

    Thank you for your prompt reply.

    In your reply, you suggested

    so just copy the object-cache.php from the redis-cache plugin folder to your wp-contents folder.

    I checked my wp-content/plugins/redis-cache plugin folder, and there is no object-cache.php there, the object-cache.php file has always been in the wp-content folder.

    I checked for php-fpm and I don’t think it is part of my install as going into the docker container it tells me that the php-fpm service php-fpm: unrecognized service. I used ls -R | grep php-fpm and find / -name "php-fpm" from the root directory and there is nothing that refers to php-fpm.

    I did find docker-php-ext-opcache.ini in the /usr/local/etc/php/conf.d directory, and the contents is:

    zend_extension=opcache.

    Regarding php, the version is 8.3.30.

    My reverse proxy is traefik if that makes any difference.

    The WordPress docker image I use is image: wordpress:latest.

    I tried changing the permissions for object-cache.php FROM : rw-r--r-- TO rw-rw-rw-. Same outcome.

    I hope this extra information might help.

    Thank you again for looking into this.

    • This reply was modified 1 month ago by benwoony.
    • This reply was modified 1 month ago by benwoony.
    Thread Starter benwoony

    (@benwoony)

    As a further test, I deactivated the following plug-ins individually with no change to the Status:

    Cloudflare
    Google Analytics for WordPress by MonsterInsights
    Jetpack
    Optimization Detective
    Performance Lab
    Site Kit by Google
    Wordfence Security
    WP-Staging PRO

    alpha31

    (@alpha31)

    Jumping in to add some info.
    No need to investigate your install or correct setup.

    The issue is present on all websites that we have which are running 6.9.4.
    We haven’t checked what is the cause, but the object cache is working, however the reporting is bugged (saying disabled).

    Hope it helps 🙂

    Thread Starter benwoony

    (@benwoony)

    @alpha31

    Yes it helps!! Just happy it was me 🤣.

    I’m going to mark this thread resolved. Looks like 6.9.4 has caused problems on a number of plugins.

    Ben

    alpha31

    (@alpha31)

    We highly suggest leaving the support tickets to be closed by maintainers as the issue is not resolved, no matter the cause.
    Marking it as resolved will make it look like we have a fix here in this topic, but we don’t and it might require a fix from the plugin side to work with the new version of WP.

    Best regards,

    Thread Starter benwoony

    (@benwoony)

    Till had previously resolved it, so I wanted to be consistent. It is unresolved! Thanks again.

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

You must be logged in to reply to this topic.