Skip to content

[3.10] Progressive cache fix#35528

Merged
zero-24 merged 1 commit intojoomla:3.10-devfrom
Denitz:HTMLdocument__getBuffer()_caches_debug_output
Nov 22, 2021
Merged

[3.10] Progressive cache fix#35528
zero-24 merged 1 commit intojoomla:3.10-devfrom
Denitz:HTMLdocument__getBuffer()_caches_debug_output

Conversation

@Denitz
Copy link
Copy Markdown
Contributor

@Denitz Denitz commented Sep 10, 2021

Pull Request for Issue # .

Summary of Changes

Backport of #27000 into 3.10

Additionally, we should not cache the debug position!

And only use the renderer class in cache hash, otherwise the custom renderer can produce the different hash on non-different load, i.e. it's the issue with all YooTheme templates.

Testing Instructions

Enable Joomla debug and progressive caching, load a single page in frontend as a guest, see a cache file in /cache/com_module growing on each page load.

Actual result BEFORE applying this Pull Request

See a cache file in /cache/com_modules growing on each page load.

Expected result AFTER applying this Pull Request

The cache file stays same.

Documentation Changes Required

No.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Sep 11, 2021

I have tested this item ✅ successfully on 0902640

I can confirm the issue and that the file does no longer grow after each page load with the patch applied.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35528.

@zero-24 zero-24 added this to the Joomla 3.10.3 milestone Sep 11, 2021
@zero-24 zero-24 modified the milestones: Joomla 3.10.3, Joomla 3.10.4 Oct 15, 2021
@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Nov 22, 2021

I have tested this item ✅ successfully on 0902640

Works as expected! Before applying the PR the cache folder increased. After the PR the cache folder stayed the same size.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35528.

@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.10.4 milestone Nov 22, 2021
@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Nov 22, 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35528.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 22, 2021
@RickR2H RickR2H added this to the Joomla 3.10.4 milestone Nov 22, 2021
@zero-24 zero-24 merged commit 7b77776 into joomla:3.10-dev Nov 22, 2021
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 22, 2021
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Nov 22, 2021

Merging thanks.

@richard67
Copy link
Copy Markdown
Member

Additionally, we should not cache the debug position!

Obviously this change from the PR here is missing in 4.0-dev yet, see https://github.com/joomla/joomla-cms/blob/3.10-dev/libraries/src/Document/HtmlDocument.php#L472 and https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Document/HtmlDocument.php#L559 .

I.e. this PR is not a pure back integration of #27000 , and that additional part for not caching the debug module position should be merged up into 4.0-dev.

@zero-24 @wilsonge You are aware of that and agree?

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.

5 participants