? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
18 Aug 2020

Pull Request for Issue #29950.

Summary of Changes

cache one query result

Testing Instructions

enable debug plugin
apply patch
go to control panel and look at the executed query number should be something like 30
refresh the page
now the query number should be something 29 ie one less

Actual result BEFORE applying this Pull Request

something like 30 queries

Expected result AFTER applying this Pull Request

something like 29 queries ie one less

avatar alikon alikon - open - 18 Aug 2020
avatar alikon alikon - change - 18 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2020
Category Administration com_postinstall
avatar alikon alikon - change - 18 Aug 2020
Labels Added: ?
6264677 18 Aug 2020 avatar alikon oops
avatar richard67
richard67 - comment - 18 Aug 2020

@alikon MySQL system test failing. Not sure if it is related to your PR. Will investigate. Stay tuned.

avatar SharkyKZ
SharkyKZ - comment - 18 Aug 2020

Class imports are missing.

avatar ceford
ceford - comment - 19 Aug 2020

I get 37 Queries before and after applying the patch. This after reinstalling the nightly build today 2020-08-19.


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

avatar SharkyKZ
SharkyKZ - comment - 21 Aug 2020

Cache needs to be cleaned when hiding messages.

avatar SharkyKZ
SharkyKZ - comment - 21 Aug 2020

Note this does not address #29950 which is about post install message scripts checking conditions.

avatar alikon
alikon - comment - 26 Aug 2020

@SharkyKZ did you mean to insert a Factory::getCache()->clean('com_postinstall')
here

and here

?

avatar SharkyKZ
SharkyKZ - comment - 26 Aug 2020

I would not use caching here in the first place. But if you want to go that way, yes, refresh cache whenever it needs to be refreshed.

avatar alikon
alikon - comment - 26 Aug 2020

I would not use caching here in the first place.

can you elaborate a bit more , please....

i've thinked that postinstall messages would be a perfect fit for caching

avatar SharkyKZ
SharkyKZ - comment - 27 Aug 2020

It's not necessarily wrong. But the gain here is minimal and only when caching is enabled. I think #29950 should be solved first.

avatar alikon
alikon - comment - 15 Sep 2020

added the cache clean after insert/update/delete

dec0b36 15 Sep 2020 avatar alikon cs
avatar rmittl rmittl - test_item - 17 Oct 2020 - Tested unsuccessfully
avatar rmittl
rmittl - comment - 17 Oct 2020

I have tested this item ? unsuccessfully on dec0b36

I get 36 queries before and after applied the patch.


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

avatar rmittl
rmittl - comment - 17 Oct 2020

I get 36 queries before and after applied the patch.


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

avatar ceford
ceford - comment - 18 Nov 2020

Any progress on this? I checked that the patch does actually apply the code changes but I still get exactly the same number of queries with and without the patch. I assume this is something to do with the Post Installation Messages icon number in the title bar. Looking at that page still gives me no difference in the number of queries. Before test I pulled the joomla-cms source and merged it into my clone. Am I doing something wrong in the test?


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

avatar chmst
chmst - comment - 1 Jan 2021

Maybe missing in the testing instructions that caching must be enabled? Then it works as described.

avatar chmst
chmst - comment - 1 Jan 2021

I have tested this item successfully on dec0b36


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

avatar chmst chmst - test_item - 1 Jan 2021 - Tested successfully
avatar gostn
gostn - comment - 2 Jan 2021

I have tested this item successfully on dec0b36


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

avatar gostn gostn - test_item - 2 Jan 2021 - Tested successfully
avatar alikon alikon - change - 2 Jan 2021
Status Pending Ready to Commit
avatar alikon
alikon - comment - 2 Jan 2021

RTC


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

avatar wilsonge wilsonge - change - 10 Jan 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-01-10 01:21:40
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 10 Jan 2021
avatar wilsonge wilsonge - merge - 10 Jan 2021
avatar wilsonge
wilsonge - comment - 10 Jan 2021

Thanks!

Add a Comment

Login with GitHub to post a comment