summaryrefslogtreecommitdiffstats
path: root/api/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/status.go')
-rw-r--r--api/status.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/status.go b/api/status.go
index 897102a4b..a3d419862 100644
--- a/api/status.go
+++ b/api/status.go
@@ -16,6 +16,10 @@ import (
var statusCache *utils.Cache = utils.NewLru(model.STATUS_CACHE_SIZE)
+func ClearStatusCache() {
+ statusCache.Purge()
+}
+
func AddStatusCacheSkipClusterSend(status *model.Status) {
statusCache.Add(status.UserId, status)
}