• Resolved alistairb1993

    (@alistairb1993)


    I’ve setup redis in the past with W3Total Cache, on Ubuntu servers with apache.

    I have put these in my configuration php file in the ini directory of w3-total-cache
    define( ‘W3TC_CONFIG_CACHE_ENGINE’, ‘redis’);
    define( ‘W3TC_CONFIG_CACHE_REDIS_SERVERS’, ‘127.0.0.1:6379’ );

    I have installed redis-server
    I have installed php-redis
    I have adjusted max-memory, memory and supervised in the redis config.

    I have restarted apache and redis-server and restarted redis-server.service

    I have then rebooted my server however, redis fails to show as an available option in w3-total-cache

    I’m suspecting the issue may be related to me using php 7.3 as I didn’t the previous times when it worked.

    Any tips or suggestions would be great thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    I am sorry for the issue you are experiencing and I am happy to help.
    There should be no connection with the PHP version and the fact if the Redis is recognized by W3 Total Cache.
    W3 Total Cache detects PHP Redis and it’s that simple. Once PHP Redis is installed, normally you should only restart the Redis server. In some cases restarting your apache is also needed
    Have you tried completely removing W3TC and re-installing it? Also, have you tried changing the PHP version and restarting the PHP
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Thanks for response.

    I havent tried removing and reinstalling W3TC.

    Do you suggest delete it completely and download it from plugins and install?

    Could you please be a bit more specific on what you mean by changing PHP Version as I intend to use Php 7.3 and all its libraries etcetera.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    Yes, I would suggest to completely remove and re-install W3TC and see if the issue persists.
    As for changing the PHP version, my suggestion was to try changing the PHP to 7.4 for example to confirm if the issue is related to PHP version 7.3.
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Okay I will try remove W3TC and reinstall it.

    As for PHP version do you mean enabling a different PHP version on the server. As in disable 7.3 and enable 7.4.

    Or are you referring adjusting a setting somewhere on wordpress

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    Yes, I am suggesting enabling a different version on the server so your website will be running on 7.4 instead of 7.3
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Hello

    I have confirmed that running PHP 7.3 is the issue.
    I disabled PHP 7.3 and enabled PHP 7.2 and then Redis became available as a caching option.

    I then disabled PHP 7.2 and enabled PHP 7.3 and the Redis option was not available.

    I believe there is an issue in W3TC plugin for PHP 7.3 regarding enabling Redis for a caching option.

    Could your developers please look into this and provide an update?
    Thanks

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    Thank you for the information.
    Let me make some tests and check this and I’ll get back to you.
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Hello

    Just following up as its been a few days.

    Have made a fix for this issue yet, that is ready for an update?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    We are still testing this.
    I’ll get back to you as soon as I have the answer.
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Hello

    I am checking W3TotalCache on my plugins area, and it says an update required for 2.1.6

    I was just checking if in that update there has been a fix to this Redis issue for 7.3. Or its just the fact that i’m a version behind.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    No, we are still investigating this issue.
    Thanks!

    Thread Starter alistairb1993

    (@alistairb1993)

    Hello @vmarko

    I notice there is another update for W3 Total Cache to download.

    Has this version fixed redis caching for PHP 7.3?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alistairb1993

    We’ve tested this and there is no conflict in our tests so this is something related to your hosting environment.
    I would suggest upgrading your PHP to the latest version.
    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Redis Caching Not Working PHP 7.3’ is closed to new replies.