Upgrade to 3.5.1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user