Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Skip caching file count for locker

Neeraj Gupta9eb5417658a3
diff --git a/server/pkg/controller/usercache/count.go b/server/pkg/controller/usercache/count.go
index 22b5b512ca..33068187c1 100644
--- a/server/pkg/controller/usercache/count.go
+++ b/server/pkg/controller/usercache/count.go
@@ -28,7 +28,7 @@ func (c *Controller) getUserCountAndUpdateCache(userID int64, app ente.App, oldC
if err != nil {
return 0, stacktrace.Propagate(err, "")
}
- if oldCache != nil && oldCache.Usage == usage && oldCache.TrashUpdatedAt == trashUpdatedAt {
+ if oldCache != nil && oldCache.Usage == usage && oldCache.TrashUpdatedAt == trashUpdatedAt && app != ente.Locker {
logrus.Debugf("Cache hit for user %d", userID)
return oldCache.Count, nil
}