? PBF bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
16 Feb 2022

Summary of Changes

  1. Disable page cache on Jooa11y active state
  2. Disable system caching on Jooa11y active state.
  3. Load plugin language only if plugin actually runs.
  4. Remove useless $direction and $lang vars.
  5. Prettify isAuthorisedDisplayChecker() method

Testing Instructions

Enable Joomla system cache plugin.
Ensure that debug is disabled.
Clear Joomla cache.
Load frontend article as guest.
See cache file in /administrator/cache/page folder
Edit article in backend and perform "Accessibility Check".
See extra file in /administrator/cache/page folder

Actual result BEFORE applying this Pull Request

An extra cache file is generated for each article

Expected result AFTER applying this Pull Request

Cache file is not generated.

Documentation Changes Required

No.

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
5.00

99ad3ca 16 Feb 2022 avatar Denitz fix
2cff549 16 Feb 2022 avatar Denitz fix
avatar Denitz Denitz - open - 16 Feb 2022
avatar Denitz Denitz - change - 16 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2022
Category Front End Plugins
avatar Denitz Denitz - change - 16 Feb 2022
Labels Added: ?
avatar Denitz Denitz - change - 17 Feb 2022
The description was changed
avatar Denitz Denitz - edited - 17 Feb 2022
7967a59 17 Feb 2022 avatar Denitz CS
49b4593 17 Feb 2022 avatar Denitz CS
95e2546 24 Feb 2022 avatar Denitz CS
avatar brianteeman
brianteeman - comment - 26 Feb 2022

@Denitz you do not need to keep updating your branch. Unless there are conflicts to fix its best if you dont as every commit will reset the test count

avatar Denitz
Denitz - comment - 26 Feb 2022

Argh, sorry, I didn't know about test count.

avatar carcam
carcam - comment - 13 May 2022

I have tested this item ? unsuccessfully on 74b13e5

I'm afraid I cannot reproduce the issue.

I have tried this:

  1. Enabling conservative caching
  2. Enabling both conservative caching and page cache

Accesibility button only appears in frontend when the "show always" check is marked on the plugin configuration.


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

avatar carcam carcam - test_item - 13 May 2022 - Tested unsuccessfully
avatar Denitz
Denitz - comment - 25 May 2022

@carcam Do you have Joomla debug enabled? Caching is not working in this case, should be disabled.

avatar carcam
carcam - comment - 27 May 2022

Hi @Denitz thank you for your reply.

Debug is disabled and attached you may see some relevant screenshots of my current configuration.

Captura de Pantalla 2022-05-27 a las 16 44 56
Captura de Pantalla 2022-05-27 a las 16 44 46

Captura de Pantalla 2022-05-27 a las 16 45 49
Captura de Pantalla 2022-05-27 a las 16 45 35
Captura de Pantalla 2022-05-27 a las 16 45 25
Captura de Pantalla 2022-05-27 a las 16 45 16

Still no luck reproducing the issue in latest code from 4.1-dev branch...

avatar Denitz
Denitz - comment - 2 Jun 2022

@carcam Not sure what's wrong, but it's really not replicated.

Moreover, assuming that Jooa11y injects assets via onBeforeCompileHead event, these assets can't be cached via view cache (caching in global config) for guests.

But, it's still cached with 'System - Page Cache' enabled for accessibility check preview URL like https://site.com/news/article-alias?jooa11y=1 (see ?jooa11y=1 appended). Having an extra cache file is useless.

I've updated summary of changes and test instructions.

avatar Denitz Denitz - change - 2 Jun 2022
The description was changed
avatar Denitz Denitz - edited - 2 Jun 2022
avatar Denitz
Denitz - comment - 2 Jun 2022

@carcam I found why it's not reproduceable anymore: recently, we have pushed the modules cache update and now the module cache only contains assets added by these module, but not all assets existing at the time of module generation.
Before, the article was rendered and cached, next template is rendered, Jooa11y adds own assets via onBeforeCompileHead, next modules were rendered and cached (and the module cache contained Jooa11y assets).
Anyway, the cache should be disabled on Jooa11y active state.

avatar Denitz Denitz - change - 2 Jun 2022
Labels Added: PBF
avatar carcam carcam - test_item - 10 Jun 2022 - Tested successfully
avatar carcam
carcam - comment - 10 Jun 2022

I have tested this item successfully on 7453245

Hi @Denitz
Thank you very much for rewriting the instructions!!
I have been able to reproduce the issue and after applying the patch no files appear in the cache folder in any case. If that was the intention everything is fine ;).


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

avatar Quiviro Quiviro - test_item - 10 Jun 2022 - Not tested
avatar Quiviro
Quiviro - comment - 10 Jun 2022

I have not tested this item.

It seems I cannot reproduce the issue.

If I open the article as guest, it creates cache file. Then, when I edit and check in backoffice the extra cache file is not generated (after and before applying patch).
I copied the configuration from carcam


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

avatar laoneo
laoneo - comment - 21 Jun 2022

@brianteeman can you have a look here again if all is ok?

avatar brianteeman brianteeman - test_item - 21 Jun 2022 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 21 Jun 2022

I have tested this item ? unsuccessfully on 7453245

Cannot replicate the reported problem

Load frontend article as guest.
See cache file in /administrator/cache/page folder - YES
Edit article in backend and perform "Accessibility Check".
See extra file in /administrator/cache/page folder - NO


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

avatar Denitz
Denitz - comment - 22 Jun 2022

@brianteeman Please ensure that system page cache plugin is enabled and you are not logged in frontend.

avatar brianteeman
brianteeman - comment - 22 Jun 2022

pretty sure i set it up exactly as shown in @carcam screenshots but will double check

avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar Denitz Denitz - change - 2 Jul 2022
Labels Added: ?
avatar Denitz Denitz - change - 23 Jul 2022
Labels Added: ?
Removed: ?
avatar Denitz Denitz - change - 24 Mar 2023
Labels Removed: ?
avatar obuisard
obuisard - comment - 2 Aug 2023

@Denitz Could you make 2 pull requests? One for the refactoring and one for the cache issue? Would be great, thanks.

avatar Denitz
Denitz - comment - 28 Aug 2023

Sorry, I can't, this PR is simple enough.

avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 4.4-dev.

avatar Denitz
Denitz - comment - 3 Oct 2023

Closed in favour of #41956

avatar Denitz Denitz - close - 3 Oct 2023
avatar Denitz Denitz - change - 3 Oct 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-10-03 10:09:55
Closed_By Denitz
Labels Added: ? bug PR-4.4-dev
Removed: ?

Add a Comment

Login with GitHub to post a comment