-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Description
Description of the problem
Calling ee()->cache->clean(); when connected to the Redis driver causing a deprecated error.
Need to check for the del method as you do in the delete method
if (method_exists($this->_redis, 'del')) { // $this->_redis->del } else ...
How To Reproduce
- Set the 'cache_driver' to redis
- Call ee()->cache->clean();
Error Messages
The delete function is deprecated: system/ee/legacy/libraries/Cache/drivers/Cache_redis.php:100
Environment Details:
- Version: 7.4.11
- PHP Version 8.1
- MySQL Version 8.0
- OS: Linux
- Web Server: nginx
Possible Solution
Use the same if check as other methods such as delete to ensure calling the del method and not the delete method
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels