Support » Plugin: Redis Object Cache » Unable to Enable Object Cache

  • Resolved bikashinwp

    (@bikashinwp)


    I have installed Redis Object Cache plugin to fix a performance issue for my website, http://www.onlineworld.blog, which is built using WordPress. After installing and activating the Redis Object Cache plugin, I went to settings and clicked “Enable Object Cache” button. After clicking the “Enable Object Cache” button, the site started showing an error. To fix the error, I followed this thread, https://wordpress.org/support/topic/website-shows-there-has-been-a-critical-error-on-this-website-redis-upate, and as per @bundfegadmin’s response to the thread, I deleted the object-cache.php file from wp-content folder and the error solved and website opens. I then again went to Redis Object Cache plugin and clicked “Enable Object Cache” button, again the error. I again deleted the object-cache.php file from wp-content to come out of the error. How do I Enable Object Cache and not get the error?

    The page I need help with: [log in to see the link]

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

    (@tillkruess)

    Hey!

    Did you follow the README and configured the WP_REDIS_* constants?

    If so, can you post your Diagnostics from the plugin’s settings?

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess Thank you, I have read the README file and found the constants I will have to configure. Next, I checked in few places, but could not find where I will need to configure the WP_REDIS_* constants. Can you please let me know where I have to configure the WP_REDIS_* constants?

    Plugin Author Till Krüss

    (@tillkruess)

    It’s documented in the README file.

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess After reading the README file, I could only find the Configuration Options, but where to configure and how to, that I could not find. Can you please help me find where to configure and how to?

    Plugin Author Till Krüss

    (@tillkruess)

    You seem skipped or ignored the section in the readme called “Installation”. Read it.

    https://github.com/rhubarbgroup/redis-cache/commit/c132c987f4f0bfdd66f07b1b9605d12679845053

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess I read the Installation instructions in your provided link and configured the constants in wp-config.php and then went to the settings of Redis Object Cache plugin and clicked, Enable Object Cache, again the same error. Below I am providing two Google Drive links, where you will find two images, one from the WP Config file where the constants I have specified, another of the error.

    Of WP Config file – https://drive.google.com/file/d/14BGXljRzCQJzVeRVhD1LezBHZKl7bWk6/

    Of the Error – https://drive.google.com/file/d/1fOVcHXfdyDVZhnpZ9OozT3yyjIiAf0Hx/

    Plugin Author Till Krüss

    (@tillkruess)

    Is Redis Server reachable via redis-cli?

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess I don't know how to check if Redis Server is reachable via redis-cli. After configuring the WP_REDIS_* constants in the wp-config.php, I can see the constants in the plugin settings' diagnostics. I am pasting below.
    
    Status: Drop-in not installed
    Client:
    Drop-in: Not installed
    Disabled: No
    PhpRedis: Not loaded
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 7.4.32
    Plugin Version: 2.3.0
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: 0
    Filesystem: Working
    WP_REDIS_CLIENT: ""
    WP_REDIS_SCHEME: "tcp"
    WP_REDIS_PATH: ""
    WP_REDIS_HOST: "127.0.0.1"
    WP_REDIS_PORT: "6379"
    WP_REDIS_DATABASE: "0"
    WP_REDIS_TIMEOUT: "1"
    WP_REDIS_READ_TIMEOUT: "1"
    WP_REDIS_MAXTTL: "0"
    WP_REDIS_PREFIX: ""
    WP_REDIS_PLUGIN_PATH: "/home/onlinew1/domains/onlineworld.blog/public_html/wp-content/plugins/redis-cache"
    WP_REDIS_IGNORED_GROUPS: "[]"
    Drop-ins: []
    Plugin Author Till Krüss

    (@tillkruess)

    Upgrade to the latest version and post a screenshot of the Settings > Redis page.

    Thread Starter bikashinwp

    (@bikashinwp)

    I have updated Redis Object Cache plugin to Version 2.4.1. You will find the screenshot of the plugin’s settings page in the following Google Drive URL: https://drive.google.com/file/d/1D9W8DAwNArbJTTqYyJfItzmFZmyDuntY

    Plugin Author Till Krüss

    (@tillkruess)

    Can you connect to your Redis Server using redis-cli?

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess I do not know how to do that, can you please guide me to connect to Redis Server using redis-cli?

    Plugin Author Till Krüss

    (@tillkruess)

    You can Google that yourself.

    Thread Starter bikashinwp

    (@bikashinwp)

    @tillkruess Okay, thank you!

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.