? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
10 May 2020

Pull Request for Issue #28727 .

Summary of Changes

Store/Restore Asset Manager state for caching, with HtmlDocument::get[set]HeadData()

Testing Instructions

Apply patch.
Enable caching in global configuration.
Create a CustomHTML module with next content:
<p class="much-red">test cache</p>

Edit modules/mod_custom/tmpl/default.php, add:

$wa = $app->getDocument()->getWebAssetManager();
$wa->addInlineStyle('.much-red{color:red; font-weight:bold;}');

Open the page with module.

Expected result

The text color in the module should be red after each page refresh.

Actual result

The text is red only after first load (or after clearing the cache), and stays black on future page refresh

Documentation Changes Required

none

@wilsonge please review

avatar Fedik Fedik - open - 10 May 2020
avatar Fedik Fedik - change - 10 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2020
Category Libraries
avatar richard67
richard67 - comment - 10 May 2020

@Fedik Is that somehow related to the recently merged PR #28990 ? At least the description reads similar to me.

avatar Fedik
Fedik - comment - 10 May 2020

@richard67 #28990 is about old _script/_style declarations of the Document, that do not cover WebAsset

avatar richard67
richard67 - comment - 10 May 2020

@Fedik Ah, I see. I haven't noticed that on a quick look. Thanks for the clarification.

avatar ceford ceford - test_item - 11 May 2020 - Tested successfully
avatar ceford
ceford - comment - 11 May 2020

I have tested this item successfully on 89ee9e4

Worked as advertised with Conservative and Progressive cacheing.


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

avatar bonzani bonzani - test_item - 24 May 2020 - Tested successfully
avatar bonzani
bonzani - comment - 24 May 2020

I have tested this item successfully on 89ee9e4


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

avatar alikon alikon - change - 24 May 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 24 May 2020

RTC


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

avatar wilsonge wilsonge - change - 24 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-24 20:04:15
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 24 May 2020
avatar wilsonge wilsonge - merge - 24 May 2020
avatar wilsonge
wilsonge - comment - 24 May 2020

Thanks!

Add a Comment

Login with GitHub to post a comment