Skip to content
Snippets Groups Projects
Commit 53e21c23 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Fix #14653: evict question caches on update

parent 35179a49
Branches
Tags
No related merge requests found
......@@ -556,7 +556,11 @@ public class CouchDBDao implements IDatabaseDao {
return q;
}
@CachePut(value = "questions")
@Caching(evict = {@CacheEvict(value = "skillquestions", allEntries = true),
@CacheEvict(value = "lecturequestions", allEntries = true),
@CacheEvict(value = "preparationquestions", allEntries = true),
@CacheEvict(value = "flashcardquestions", allEntries = true) },
put = {@CachePut("questions")})
@Override
public Question updateQuestion(final Question question) {
try {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment