Revision 0bc476ad8d25afc0249facab6316985461e8d44f

Committed on 31/07/2018 1:48 am by Michael Lee <michael.lee@zerustech.com> [GitHub Diff]

Update tag for preview cache (#153)

* Update tag for purging preview cache

The admin preview function does not display the draft content that is
currently being edited, this is because the preview cache is not purged,
and the preview function always fetches content from the view cache,
refer to ezsystems/ezpublish-kernel#2396 for details.

To fix this issue, `PersistenceCachePurger.php::contentVersion()` has
been changed to invalidate cache with the new tags.

| Question | Answer
| ------------------ | ------------------
| **JIRA issue** | n/a
| **Bug** | yes
| **New feature** | no
| **Target version** | `v2.0.0`
| **BC breaks** | no
| **Tests pass** | yes
| **Doc needed** | no

**TODO**:
- [ ] Implement feature / fix a bug.
- [ ] Implement tests.
- [ ] Fix new code according to Coding Standards (`$ composer fix-cs`).
- [x] Ask for Code Review.

* Update PersistenceCachePurger.php

* Update PersistenceCachePurgerTest.php