? ? Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
30 Sep 2021

Summary of Changes

MenuHelper::getList() doesn't cache menu items because $key variable is overwritten in foreach block.

Testing Instructions

Enable Joomla caching, log in, load any page with cached menu module.

Actual result BEFORE applying this Pull Request

See that menu items cache file is regenerated on each page load.

Expected result AFTER applying this Pull Request

Menu items cache file stays same.

Documentation Changes Required

No.

f9e9f64 30 Sep 2021 avatar Denitz fix
avatar Denitz Denitz - open - 30 Sep 2021
avatar Denitz Denitz - change - 30 Sep 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2021
Category Modules Front End
avatar Denitz Denitz - change - 30 Sep 2021
The description was changed
avatar Denitz Denitz - edited - 30 Sep 2021
avatar Denitz
Denitz - comment - 30 Sep 2021

Can somebody restart AppVeyor?

avatar rdeutz
rdeutz - comment - 30 Sep 2021

Restarted, good find.

avatar simbus82
simbus82 - comment - 30 Sep 2021

I don't understand :-) but it is my limit.
Why is this solved only renaming $key to $cachekey?

avatar rdeutz
rdeutz - comment - 30 Sep 2021

Why is this solved only renaming $key to $cachekey?

There is an foreach in-between that uses $key, you have to view the whole file and not only the change

avatar simbus82
simbus82 - comment - 30 Sep 2021

Why is this solved only renaming $key to $cachekey?

There is an foreach in-between that uses $key, you have to view the whole file and not only the change

Ah, thanks! I found it!

avatar Quy Quy - change - 27 Jan 2022
Labels Added: ? ?
avatar Quy Quy - test_item - 30 Jan 2022 - Tested successfully
avatar Quy
Quy - comment - 30 Jan 2022

I have tested this item successfully on 56a658e


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

avatar jwaisner jwaisner - test_item - 22 Feb 2022 - Tested successfully
avatar jwaisner
jwaisner - comment - 22 Feb 2022

I have tested this item successfully on 56a658e


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

avatar jwaisner jwaisner - change - 22 Feb 2022
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 22 Feb 2022

RTC


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

avatar Denitz Denitz - change - 22 Feb 2022
Labels Added: ? ?
Removed: ? ?
avatar bembelimen bembelimen - close - 3 Mar 2022
avatar bembelimen bembelimen - merge - 3 Mar 2022
avatar bembelimen bembelimen - change - 3 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-03 03:03:33
Closed_By bembelimen
avatar bembelimen
bembelimen - comment - 3 Mar 2022

Thx

Add a Comment

Login with GitHub to post a comment