Fix redis 'delete' deprecation error

Redis deprecated the 'delete' alias for 'del'. Posting while using redis cache would return an error, the post would still be posted.
This commit is contained in:
discomrade authored and Fredrick Brennan committed 2022-01-16 23:50:25 -05:00
1 parent 617f2a68da
commit 8512321669
1 file changed
+5 -1
+5 -1
View File
@@ -118,11 +118,15 @@ class Cache {
switch ($config['cache']['enabled']) {
case 'memcached':
case 'redis':
if (!self::$cache)
self::init();
self::$cache->delete($key);
break;
case 'redis':
if (!self::$cache)
self::init();
self::$cache->del($key);
break;
case 'apc':
apc_delete($key);
break;