? Success

User tests: Successful: Unsuccessful:

avatar creativeprogramming
creativeprogramming
5 Oct 2013

joomla/joomla-platform#673
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=26551

I fixed module cache logic in order to consider the logic of the "script" and "style" objects of the document's head data array

This logic is already handled by JDocumentHTML->mergeHeadData() which is a function used also to reconstruct the document headers from cache pieces so this fix is an addition of a missing - but surely wanted and planned in origin by you - piece of code

https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/document/html/html.php#L227-236

This is an old unresolved issue:
http://forum.joomla.org/viewtopic.php?f=615&t=719887
joomla/joomla-platform#673

avatar creativeprogramming creativeprogramming - open - 5 Oct 2013
avatar brunobatista
brunobatista - comment - 21 Oct 2013

Works for me! Thanks!

avatar Denitz
Denitz - comment - 8 Nov 2013

Great!
Should we add same pull in 2.5?

avatar creativeprogramming
creativeprogramming - comment - 9 Nov 2013

Yes the issue and the fix is for both 3.x and 2.5.x, anyway please use last commit, now I tested against the issue on a 2.5.16 and a 3.2 also the optimized version and I fixed a wrong logic I added in last commits

avatar creativeprogramming
creativeprogramming - comment - 9 Nov 2013
anyway caution: practically it works well but theoretically now I found the patch is not yet perfect, now i'm paranoically reasoning on rare situations that maybe can happens) I need more time to do a deep testing case, PLEASE DON'T MERGE YET, improve it or help me reasoning on the last comments I added in the code if you want or wait i will get back to you.

Maybe another solution can be to rewrite the JDocument "HeadData array" in order to let it holding inline script and inline styles as arrays and not string buffers (why the need for this exception? it it will be like any other element it holds, as an array there will be no need for my patch)

avatar creativeprogramming
creativeprogramming - comment - 9 Nov 2013

@Denitz after some hours oft testing, I arrived to the conclusion that your original optimized version was perfect, sorry if I created confusion and doubted, but i was not fully with the mind in the problem, your code works like a charm, and solves also some potential issues of mine! I applied it! Thanks so much!

@brunobatista thanks for the feedback, it worked but wasn't perfect, use last commit please if you have it in production

avatar brunobatista
brunobatista - comment - 9 Nov 2013
avatar creativeprogramming
creativeprogramming - comment - 28 Nov 2013

merged in #2558

avatar creativeprogramming creativeprogramming - change - 28 Nov 2013
Status New Closed
Closed_Date 0000-00-00 00:00:00 2013-11-28 23:21:24
avatar creativeprogramming creativeprogramming - close - 28 Nov 2013

Add a Comment

Login with GitHub to post a comment