Donnie95 Posted October 13, 2023 Posted October 13, 2023 Hello, When I disable Redis and download constants.php the file contain. \define( 'REDIS_ENABLED', true ); \define( 'STORE_METHOD', 'FileSystem' ); When I enable Redis the file contain. \define( 'REDIS_ENABLED', false ); \define( 'STORE_METHOD', 'Redis' ); Why is 'REDIS_ENABLED" set to false? I think my cache is not working properly, my site was fast (250ms response time) but after I edited a widget the site started to be slower. (500ms, no load on the server) I cleared the cache but no improvement. Thanks.
Marc Posted October 13, 2023 Posted October 13, 2023 It should indeed be true when its enabled. Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. Donnie95 1
Donnie95 Posted October 13, 2023 Author Posted October 13, 2023 2 hours ago, Marc Stridgen said: It should indeed be true when its enabled. Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. This is not a bug, the constant 'REDIS_ENABLED' is for the setting "Use Redis to reduce MySQL overhead" I don't enable this setting so it's set to false. I still don't understand why my site is much slower that usual. Daniel F 1
Management Charles Posted October 13, 2023 Management Posted October 13, 2023 Schrödinger's Redis. Marc and The Old Man 2
Daniel F Posted October 16, 2023 Posted October 16, 2023 Hi, I See you found the "confusion" with the constant. The REDIS_ENABLED constant controls the "Use Redis to reduce MySQL overhead" setting and not if Redis is enabled or disabled globally. Where is Redis running? Is it running on the same server as your web and mysql Server? What are the specs? Is Redis configured properly? Donnie95 1
Donnie95 Posted October 22, 2023 Author Posted October 22, 2023 On 10/16/2023 at 7:55 PM, Daniel F said: Hi, I See you found the "confusion" with the constant. The REDIS_ENABLED constant controls the "Use Redis to reduce MySQL overhead" setting and not if Redis is enabled or disabled globally. Where is Redis running? Is it running on the same server as your web and mysql Server? What are the specs? Is Redis configured properly? Running on the same server port 6379. I think my Redis is working properly but the REDIS_ENABLED constant should be removed from constants.php when we are using file system for cache.
Marc Posted October 23, 2023 Posted October 23, 2023 On 10/22/2023 at 9:47 AM, Donnie95 said: Running on the same server port 6379. I think my Redis is working properly but the REDIS_ENABLED constant should be removed from constants.php when we are using file system for cache. There isnt any reason for it to be removed entirely, as long as its set correctly Donnie95 1
Recommended Posts