Fix issue in storing comments cache when cache is enabled #33
This commit is contained in:
parent
c1fe1a6a32
commit
e4e1c79d1a
|
@ -3,6 +3,8 @@
|
|||
|
||||
1. [](#improved)
|
||||
* 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
|
||||
## 07/19/2016
|
||||
|
|
|
@ -103,8 +103,10 @@ class CommentsPlugin extends Plugin
|
|||
}
|
||||
|
||||
$cache = $this->grav['cache'];
|
||||
$uri = $this->grav['uri'];
|
||||
|
||||
//init cache id
|
||||
$this->comments_cache_id = md5('comments-data' . $cache->getKey());
|
||||
$this->comments_cache_id = md5('comments-data' . $cache->getKey() . '-' . $uri->url());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue