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

Scheduled method does not seem to handle caching annotations

parent ab601ec9
Branches
Tags
No related merge requests found
......@@ -1223,6 +1223,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
return this.getInfosForVisitedSessions(sessions, user);
}
@CacheEvict(value = "answers", allEntries = true)
@Override
public Answer saveAnswer(final Answer answer, final User user, final Question question, final Session session) {
final Document a = new Document();
......@@ -1242,8 +1243,6 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
return answer;
}
@Caching(evict = { @CacheEvict(value = "answers", allEntries = true),
@CacheEvict(value = "learningprogress", allEntries = true)})
@Scheduled(fixedDelay = 5000)
public void flushAnswerQueue() {
final Map<Document, Answer> map = new HashMap<Document, Answer>();
......
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