Fix for memcached connection #1020

This commit is contained in:
Andy Miller
2016-09-02 08:45:12 -06:00
parent 9b94ce6405
commit 7eb76ee80c
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
* Fixed an issue when filtering collections causing null key
* Fix for invalid HTML when rendering GIF and Vector media [#1001](https://github.com/getgrav/grav/issues/1001)
* Use pages.markdown.extra in the user's system.yaml [#1007](https://github.com/getgrav/grav/issues/1007)
* Fix for `Memcached` connection [#1020](https://github.com/getgrav/grav/issues/1020)
# v1.1.3
## 08/14/2016

View File

@@ -188,7 +188,7 @@ class Cache extends Getters
case 'memcached':
$memcached = new \Memcached();
$memcached->connect($this->config->get('system.cache.memcached.server', 'localhost'),
$memcached->addServer($this->config->get('system.cache.memcached.server', 'localhost'),
$this->config->get('system.cache.memcached.port', 11211));
$driver = new DoctrineCache\MemcachedCache();
$driver->setMemcached($memcached);