[MGNLCMNT-97] Flushing cache after commenting is triggered too late Created: 18/Feb/14 Updated: 05/Mar/14 Resolved: 05/Mar/14 |
|
| Status: | Closed |
| Project: | Commenting (closed) |
| Component/s: | Cache, client-ui |
| Affects Version/s: | None |
| Fix Version/s: | 2.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Christoph Meier | Assignee: | Christoph Meier |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
Avoid sending cached response after a comment has been posted! When a comment is posted, the page which "has" the comments must be flushed from the cache; this triggered by info.magnolia.module.commenting.cache.ReferencedPageFlushPolicy. Note, that this is a follow-up-ticket of |
| Comments |
| Comment by Christoph Meier [ 04/Mar/14 ] |
|
Using a query-param when redirecting the page to ensure its not server from cache. Note: The last version which didn't have that problem and where |
| Comment by Roman Kovařík [ 05/Mar/14 ] |
|
| Comment by Christoph Meier [ 05/Mar/14 ] |
|
I added a test which checks that the redirec-links contains a query. => PageCommentsTest#testRedirectAfterPostContainsQuery The already existing PageCommentsTest#testEnterWhitespaceCharIntoComment was not really meaningful. (I think it was never properly finished). |
| Comment by Roman Kovařík [ 05/Mar/14 ] |
|