aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/PrivacyQueriesService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/PrivacyQueriesService.java')
-rw-r--r--src/main/java/com/juick/service/PrivacyQueriesService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/PrivacyQueriesService.java b/src/main/java/com/juick/service/PrivacyQueriesService.java
index 17dd6a9b..b208c446 100644
--- a/src/main/java/com/juick/service/PrivacyQueriesService.java
+++ b/src/main/java/com/juick/service/PrivacyQueriesService.java
@@ -19,6 +19,7 @@ package com.juick.service;
import com.juick.Tag;
import com.juick.User;
+import org.springframework.cache.annotation.CacheEvict;
/**
* Created by aalexeev on 11/13/16.
@@ -28,7 +29,9 @@ public interface PrivacyQueriesService {
Removed, Added
}
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
PrivacyResult blacklistUser(User user, User target);
+ @CacheEvict(value = { "discussions", "messages", "replies" }, allEntries = true)
PrivacyResult blacklistTag(User user, Tag tag);
}