aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-21 15:10:49 +0200
committerPer Larsson <[email protected]>2021-09-21 15:10:49 +0200
commit9451d4019fd57c7b8f967b4188e40c4b0636f85e (patch)
tree4cdafb5bdd3c17bf257b467fae5abfcd0e664c9b /zenserver/cache/structuredcache.cpp
parentRefactored out get/set cache record. (diff)
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-9451d4019fd57c7b8f967b4188e40c4b0636f85e.tar.xz
zen-9451d4019fd57c7b8f967b4188e40c4b0636f85e.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zenserver/cache/structuredcache.cpp')
-rw-r--r--zenserver/cache/structuredcache.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcache.cpp b/zenserver/cache/structuredcache.cpp
index 87ec10520..faef3eb12 100644
--- a/zenserver/cache/structuredcache.cpp
+++ b/zenserver/cache/structuredcache.cpp
@@ -176,7 +176,16 @@ HttpStructuredCacheService::Flush()
void
HttpStructuredCacheService::Scrub(ScrubContext& Ctx)
{
- ZEN_UNUSED(Ctx);
+ if (m_LastScrubTime == Ctx.ScrubTimestamp())
+ {
+ return;
+ }
+
+ m_LastScrubTime = Ctx.ScrubTimestamp();
+
+ m_CasStore.Scrub(Ctx);
+ m_CidStore.Scrub(Ctx);
+ m_CacheStore.Scrub(Ctx);
}
void