Migrating file info store cache to the cache layer (#13045)
* Migrating file info store cache to the cache layer * Remove unrelated changes * Updating timer layer store * Fixing usage of invalidate cache * Removed repeated tests and unnecesiary require * Using doInvalidateCacheCluster instead of removing the cache directly * Addressing PR comments * Fixing imports * Fixing tests * Fixing license header
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b70d5df5c2
Коммит
cd382412fd
@@ -2479,10 +2479,10 @@ func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *mod
|
||||
return resultVar0, resultVar1
|
||||
}
|
||||
|
||||
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string) {
|
||||
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool) {
|
||||
start := timemodule.Now()
|
||||
|
||||
s.FileInfoStore.InvalidateFileInfosForPostCache(postId)
|
||||
s.FileInfoStore.InvalidateFileInfosForPostCache(postId, deleted)
|
||||
|
||||
elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second)
|
||||
if s.Root.Metrics != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user