Skip to content

Commit d96c742

Browse files
committed
TASK: exclude configEpoch from pruning
1 parent 0d1a0e1 commit d96c742

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Core/RedisPruneService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class RedisPruneService
1313
{
1414
// go through all keys in the selected content store
15-
// check wether they are reserved keys or currently active or contain one of the currently registered releases ids
15+
// check whether they are reserved keys or currently active or contain one of the currently registered releases ids
1616
// if not: delete
1717
const PRUNE_LUA_SCRIPT = '
1818
local contentStoreCurrent = redis.call("GET", "contentStore:current")
@@ -32,6 +32,7 @@ class RedisPruneService
3232
for index,contentStoreKey in ipairs(contentStoreAllKeys) do
3333
if contentStoreKey ~= "contentStore:current"
3434
and contentStoreKey ~= "contentStore:registeredReleases"
35+
and contentStoreKey ~= "contentStore:configEpoch"
3536
and string.sub(contentStoreKey, 1, string.len(currentContentStoreStart)) ~= currentContentStoreStart
3637
and not table_contains_value(contentStoreRegisteredReleases, contentStoreKey) then
3738
redis.call("DEL", contentStoreKey)

0 commit comments

Comments
 (0)