Skip to content

Commit

Permalink
[BUGFIX] Remove changes from pull request 122
Browse files Browse the repository at this point in the history
Reverts commit f7bed55 [TASK] Improve cache handling
This caused an exception thrown in the DataHandler
  • Loading branch information
tinzog committed Jan 16, 2025
1 parent 3339dc3 commit a4b1319
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,7 @@ protected function executeTask(): bool
$dataHandler = $this->getDataHandler();
$commands = GeneralUtility::trimExplode(',', $this->configuration['pid'], true);
foreach ($commands as $command) {
// This is the same method ultimately called as if we changed the
// DataBase via DataHandler. This means it is also the same logic
// used as the backend.
// This is @internal. However, it does more processing than
// any public api.
$dataHandler->registerRecordIdForPageCacheClearing(
'pages',
$command,
);
}

// We want to call $dataHandler->processClearCacheQueue().
// That function is protected, so we have to do it indirectly.
$dataHandler->process_cmdmap();

foreach ($commands as $command) {
$dataHandler->clear_cacheCmd($command);
$this->addMessage('Cleared frontend cache with configuration clearCacheCmd=' . $command);
}
return true;
Expand Down

0 comments on commit a4b1319

Please sign in to comment.