diff options
| author | Per Larsson <[email protected]> | 2021-09-21 15:10:49 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-09-21 15:10:49 +0200 |
| commit | 9451d4019fd57c7b8f967b4188e40c4b0636f85e (patch) | |
| tree | 4cdafb5bdd3c17bf257b467fae5abfcd0e664c9b /zenserver/cache/structuredcache.cpp | |
| parent | Refactored out get/set cache record. (diff) | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-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.cpp | 11 |
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 |