Skip to content

Commit

Permalink
[BUGFIX] Fix flushing of all cache entries
Browse files Browse the repository at this point in the history
Adapts the processing in ReverseProxyCacheBackend->flush to
ensure the cached urls are processed before the cache table
is truncated.

Resolves: #38
  • Loading branch information
dkd-friedrich committed May 8, 2024
1 parent 444ce81 commit 823de57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Cache/Backend/ReverseProxyCacheBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ public function remove($entryIdentifier)
*/
public function flush()
{
parent::flush();

// make the HTTP Purge call
if ($this->reverseProxyProvider->isActive()) {
$urls = $this->getAllCachedUrls();
$this->reverseProxyProvider->flushAllUrls($urls);
}
parent::flush();
}

/**
Expand Down

0 comments on commit 823de57

Please sign in to comment.