Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed apcu delete when deleting only one item

givanzc723095a1e08
diff --git a/system/cache/apcu.php b/system/cache/apcu.php
index 6adc4e0..b0a5ee3 100755
--- a/system/cache/apcu.php
+++ b/system/cache/apcu.php
@@ -93,11 +93,10 @@ class APCu {
public function delete($namespace, $key = '') {
if ($this->active) {
if ($namespace) {
- return apcu_delete(new \APCUIterator('/' . $this->key($namespace, $key) . '.*/'));
-
if ($key) {
return apcu_delete($this->key($namespace, $key));
} else {
+ return apcu_delete(new \APCUIterator('/' . $this->key($namespace, $key) . '.*/'));
$cache_info = apcu_cache_info();
$cache_list = $cache_info['cache_list'];