From 2437de31f37ebf3d8b33fc6da664eaed8278aba5 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 30 Dec 2022 00:16:06 +0900 Subject: [PATCH] Remove wincache and xcache drivers - they are no longer maintained for PHP 7.2+ --- common/framework/Cache.php | 2 +- common/framework/drivers/cache/wincache.php | 179 ------------------ common/framework/drivers/cache/xcache.php | 168 ---------------- .../admin/controllers/maintenance/Cleanup.php | 2 + 4 files changed, 3 insertions(+), 348 deletions(-) delete mode 100644 common/framework/drivers/cache/wincache.php delete mode 100644 common/framework/drivers/cache/xcache.php diff --git a/common/framework/Cache.php b/common/framework/Cache.php index c678b0e65..f8a198a9e 100644 --- a/common/framework/Cache.php +++ b/common/framework/Cache.php @@ -51,7 +51,7 @@ class Cache } $config = isset($config['servers']) ? $config['servers'] : array(); } - elseif (preg_match('/^(apc|dummy|memcached?|redis|sqlite|wincache|xcache)/', strval(array_first($config)), $matches)) + elseif (preg_match('/^(apc|dummy|memcached?|redis|sqlite)/', strval(array_first($config)), $matches)) { $driver_name = $matches[1] . ($matches[1] === 'memcache' ? 'd' : ''); $class_name = '\\Rhymix\\Framework\\Drivers\\Cache\\' . $driver_name; diff --git a/common/framework/drivers/cache/wincache.php b/common/framework/drivers/cache/wincache.php deleted file mode 100644 index ea9e7fe14..000000000 --- a/common/framework/drivers/cache/wincache.php +++ /dev/null @@ -1,179 +0,0 @@ - 'deleted:xe', 'classes/xml/XmlQueryParser.class.php' => 'deleted:xe', 'classes/xml/xmlquery/' => 'deleted:xe', + 'common/framework/drivers/cache/wincache.php' => 'deleted', + 'common/framework/drivers/cache/xcache.php' => 'deleted', 'common/img/flvplayer.swf' => 'deleted:xe', 'common/js/jquery-1.12.4.min.js' => 'deleted', 'common/js/jquery-1.12.4.js' => 'deleted',