From 4131a019ca58df0f244b1828315c378250a961e2 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 8 May 2020 19:17:11 -0400 Subject: [PATCH] Remove APCu as a cache option...it doesn't work with CLI authentication --- src/AnimeClient/Dispatcher.php | 4 ++-- src/AnimeClient/constants.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AnimeClient/Dispatcher.php b/src/AnimeClient/Dispatcher.php index 5d58b413..e8b58546 100644 --- a/src/AnimeClient/Dispatcher.php +++ b/src/AnimeClient/Dispatcher.php @@ -292,14 +292,14 @@ final class Dispatcher extends RoutingBase { 'API request timed out', 'Failed to retrieve data from API (╯°□°)╯︵ ┻━┻'); } - finally + /* finally { // Log out on session/api token expiration Event::on(EventType::UNAUTHORIZED, static function () { $controllerName = DEFAULT_CONTROLLER; (new $controllerName($this->container))->logout(); }); - } + } */ } /** diff --git a/src/AnimeClient/constants.php b/src/AnimeClient/constants.php index ffde78d4..51f994fa 100644 --- a/src/AnimeClient/constants.php +++ b/src/AnimeClient/constants.php @@ -92,7 +92,6 @@ const SETTINGS_MAP = [ 'title' => 'Cache Type', 'description' => 'The Cache backend', 'options' => [ - 'APCu' => 'apcu', 'Memcached' => 'memcached', 'Redis' => 'redis', 'No Cache' => 'null'