This repository was archived by the owner on Aug 19, 2024. It is now read-only.
Use post process hook#8
Open
mschwemer wants to merge 4 commits intopluswerk:masterfrom
mschwemer:use_postProcess_hook
Open
Use post process hook#8mschwemer wants to merge 4 commits intopluswerk:masterfrom mschwemer:use_postProcess_hook
mschwemer wants to merge 4 commits intopluswerk:masterfrom
mschwemer:use_postProcess_hook
Conversation
This function triggers the already registered hook "processCmdmap_postProcess" and clears the caches of the page and its children, if it is moved within the pagetree.
If this agent is activated, the caches of all children of this page will be cleared, when it is moved via the page tree.
This agent was developed in a project, but is moved to EXT:cache_automation.
On high load systems this call might run into database limitations, if the page cache of is cleared, when very many pages have to be cleared. https://projekte.in2code.de/issues/31515
ChrisB9
suggested changes
Jul 23, 2018
| if (count($expiredPages) !== 0) { | ||
| $this->cacheService->clearPageCache(array_unique($expiredPages)); | ||
| $expiredPages = array_unique($expiredPages); | ||
| // TODO: use new API in TYPO3 V9 |
There was a problem hiding this comment.
please no TODO comments in a pull request for master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The postprocess hook is registered but not used. This commit implements the corresponding function and adds an example agent. The agent is triggered if a page is moved via DnD in the page tree. It deletes the caches of the child pages of the moved page.