Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve TYPO3 cache handling #14

Merged
merged 1 commit into from
May 16, 2023
Merged

Conversation

DanielSiepmann
Copy link
Member

@DanielSiepmann DanielSiepmann commented May 16, 2023

There might be access to TSFE get_cache_timeout() prior rendering events.
TYPO3 has a cache for timeout and won't re calculate again. We therefore need to clear the cache if timeout would change.

That will lead to inconsistent cache information throughout a single request. But the final cache timeout of the page will be correct. Other parts might be longer, which probably is fine until they relate to the events.

Relates: #10500

@DanielSiepmann DanielSiepmann self-assigned this May 16, 2023
@DanielSiepmann DanielSiepmann changed the title WIP|Improve TYPO3 cache handling Improve TYPO3 cache handling May 16, 2023
@DanielSiepmann DanielSiepmann marked this pull request as ready for review May 16, 2023 06:09
@DanielSiepmann DanielSiepmann force-pushed the 10500-fix-cache-handling branch 2 times, most recently from 9cd8098 to 521ce76 Compare May 16, 2023 06:45
Copy link
Member Author

@DanielSiepmann DanielSiepmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build on top of #15, so please merge 15 before.

@DanielSiepmann DanielSiepmann changed the base branch from main to improve-test-base May 16, 2023 07:07
Base automatically changed from improve-test-base to main May 16, 2023 07:46
There might be access to TSFE get_cache_timeout() prior rendering
events.
TYPO3 has a cache for timeout and won't re calculate again.
We therefore need to clear the cache if timeout would change.

That will lead to inconsistent cache information throughout a single
request. But the final cache timeout of the page will be correct. Other
parts might be longer, which probably is fine until they relate to the
events.

Relates: #10500
@DanielSiepmann DanielSiepmann merged commit 0fc2668 into main May 16, 2023
23 checks passed
@DanielSiepmann DanielSiepmann deleted the 10500-fix-cache-handling branch May 16, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants