BoldGrid / w3-total-cache

GNU General Public License v2.0
151 stars 81 forks source link

Redis testing function returns success for non existing server #869

Closed mavas84 closed 2 months ago

mavas84 commented 2 months ago

Redis testing function – it always returns success for any host and port. Generic_AdminActions_Test.php, function w3tc_test_redis:50 you set $success=true;

and after line 73 if $test_value is null not checked – so it always returns success.

Reference topic: https://wordpress.org/support/topic/redis-testing-function-returns-success-for-non-existing-server/