From c85fb353e3c5f249c73f5846e74ef5ab023215f0 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 20 Feb 2026 16:55:51 +0100 Subject: [PATCH 1/3] set default caching type to apcu to improve UX (fallback is always file) --- application/config/config.sample.php | 2 +- install/config/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config/config.sample.php b/application/config/config.sample.php index 15c3cb3c7..05347d6b8 100644 --- a/application/config/config.sample.php +++ b/application/config/config.sample.php @@ -433,7 +433,7 @@ $config['error_views_path'] = ''; | */ $config['cache_path'] = ''; -$config['cache_adapter'] = 'file'; +$config['cache_adapter'] = 'apcu'; $config['cache_backup'] = 'file'; $config['cache_key_prefix'] = ''; diff --git a/install/config/config.php b/install/config/config.php index 1e4ad582d..c184abb70 100644 --- a/install/config/config.php +++ b/install/config/config.php @@ -433,7 +433,7 @@ $config['error_views_path'] = ''; | */ $config['cache_path'] = ''; -$config['cache_adapter'] = 'file'; +$config['cache_adapter'] = 'apcu'; $config['cache_backup'] = 'file'; $config['cache_key_prefix'] = ''; From 90131b2645c2c9c6053066d520d7e8d6215238dd Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 20 Feb 2026 16:56:27 +0100 Subject: [PATCH 2/3] improved cache debugging in debug view to catch more cases and give user better feedback about failed services --- application/controllers/Debug.php | 6 +-- application/views/debug/index.php | 65 ++++++++++++++++++++++++++----- 2 files changed, 59 insertions(+), 12 deletions(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 175c766a2..7a90bd50a 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -109,10 +109,10 @@ class Debug extends CI_Controller $cache_info = $this->Debug_model->get_cache_info(); $data['cache_available_adapters'] = $cache_info['adapters']; $data['cache_path'] = $cache_info['config']['cache_path'] ?: 'application/cache'; - $data['cache_adapter'] = ucfirst($cache_info['config']['cache_adapter'] ?? 'file'); - $data['cache_backup'] = ucfirst($cache_info['config']['cache_backup'] ?? 'file'); + $data['cache_adapter'] = strtolower($cache_info['config']['cache_adapter'] ?? 'file'); + $data['cache_backup'] = strtolower($cache_info['config']['cache_backup']) ?? 'file'; $data['cache_key_prefix'] = $cache_info['config']['cache_key_prefix'] ?: __("(empty)"); - $data['active_adapter'] = ucfirst($cache_info['active']['adapter'] ?? ($cache_info['config']['cache_adapter'] ?? 'file')); + $data['active_adapter'] = strtolower($cache_info['active']['adapter'] ?? ($cache_info['config']['cache_adapter'] ?? 'file')); $data['using_backup'] = !empty($cache_info['active']['using_backup']); $data['details_cache_size'] = $cache_info['details']['size'] ?? '0 B'; $data['details_cache_keys_count'] = $cache_info['details']['keys_count'] ?? 0; diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 724dee4fb..c84e6f1da 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -315,6 +315,45 @@ + + + + php-apcu + + + + + + + + + + + + + php-redis + + + + + + + + + + + + + php-memcached + + + + + + + + +
@@ -433,6 +472,8 @@ + + @@ -445,15 +486,6 @@ - - - - -

@@ -472,6 +504,21 @@
+
+ + + + + + + +
From 03cb2abc2c33fea14f1726c0f08c110071040d15 Mon Sep 17 00:00:00 2001 From: Fabian Berg Date: Mon, 23 Feb 2026 07:07:26 +0100 Subject: [PATCH 3/3] strtolower complete Co-authored-by: Joerg (DJ7NT) --- application/controllers/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 7a90bd50a..825342704 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -110,7 +110,7 @@ class Debug extends CI_Controller $data['cache_available_adapters'] = $cache_info['adapters']; $data['cache_path'] = $cache_info['config']['cache_path'] ?: 'application/cache'; $data['cache_adapter'] = strtolower($cache_info['config']['cache_adapter'] ?? 'file'); - $data['cache_backup'] = strtolower($cache_info['config']['cache_backup']) ?? 'file'; + $data['cache_backup'] = strtolower($cache_info['config']['cache_backup'] ?? 'file'); $data['cache_key_prefix'] = $cache_info['config']['cache_key_prefix'] ?: __("(empty)"); $data['active_adapter'] = strtolower($cache_info['active']['adapter'] ?? ($cache_info['config']['cache_adapter'] ?? 'file')); $data['using_backup'] = !empty($cache_info['active']['using_backup']);