Upgrade to 3.5.1

This commit is contained in:
Bastian Allgeier
2021-01-19 12:20:38 +01:00
parent 8f55019e01
commit 99c36fa137
119 changed files with 2973 additions and 3707 deletions

View File

@@ -2,7 +2,7 @@
namespace Kirby\Cache;
use APCuIterator;
use APCUIterator;
/**
* APCu Cache Driver
@@ -35,7 +35,7 @@ class ApcuCache extends Cache
public function flush(): bool
{
if (empty($this->options['prefix']) === false) {
return apcu_delete(new APCuIterator('!^' . preg_quote($this->options['prefix']) . '!'));
return apcu_delete(new APCUIterator('!^' . preg_quote($this->options['prefix']) . '!'));
} else {
return apcu_clear_cache();
}

View File

@@ -2,6 +2,8 @@
namespace Kirby\Cache;
use Memcached as MemcachedExt;
/**
* Memcached Driver
*
@@ -15,7 +17,7 @@ class MemCached extends Cache
{
/**
* store for the memache connection
* @var Memcached
* @var \Memcached
*/
protected $connection;
@@ -36,7 +38,7 @@ class MemCached extends Cache
parent::__construct(array_merge($defaults, $options));
$this->connection = new \Memcached();
$this->connection = new MemcachedExt();
$this->connection->addServer($this->options['host'], $this->options['port']);
}