Redis Minify Cache Method Error
-
There is an issue with the Redis Cache Method for Minify.
Fatal error: $w3_cache is not defied on line 664
File: /w3-total-cache/Minify_MinifiedFileRequestHandler.phpI went into the file and the logic seems to be copy-pasted from Memcached and that’s because it does not work for redis.
Lines from 658 to 662 contain this:
if ( class_exists( 'Memcached' ) ) { $w3_cache = new Cache_Memcached( $config ); } else if ( class_exists( 'Memcache' ) ) { $w3_cache = new Cache_Memcache( $config ); }
While it should be like this to work:
if ( class_exists( 'Redis' ) ) { $w3_cache = new Cache_Redis( $config ); }
Can you guys update this on the next version?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redis Minify Cache Method Error’ is closed to new replies.