Fix issue in storing comments cache when cache is enabled #33

This commit is contained in:
Flavio Copes 2016-08-12 13:27:50 +02:00
parent c1fe1a6a32
commit e4e1c79d1a
2 changed files with 11 additions and 7 deletions

View File

@ -3,6 +3,8 @@
1. [](#improved) 1. [](#improved)
* Added Romanian translation * Added Romanian translation
1. [](#bugfix)
* Fix issue in storing comments cache when cache is enabled [#33](https://github.com/getgrav/grav-plugin-comments/issues/33)
# v1.2.1 # v1.2.1
## 07/19/2016 ## 07/19/2016

View File

@ -103,8 +103,10 @@ class CommentsPlugin extends Plugin
} }
$cache = $this->grav['cache']; $cache = $this->grav['cache'];
$uri = $this->grav['uri'];
//init cache id //init cache id
$this->comments_cache_id = md5('comments-data' . $cache->getKey()); $this->comments_cache_id = md5('comments-data' . $cache->getKey() . '-' . $uri->url());
} }
/** /**