? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
12 Jun 2016

Summary of Changes

Cache the result set of the query to load modules for a page.

This will cache based on an ID generated for the variables for a query; the user's authorized view levels, the current client ID, the menu item ID, and on the frontend if the language filter is enabled the language code.

Testing Instructions

The modules assigned to a page based should be cached based on the conditions for the request and data properly loaded going forward. As an example, all guests visiting the frontend with a page assigned to menu item ID 101 would have the same data set; users in the registered user group visiting a page with no Itemid would have a unique data set, etc.

avatar mbabker mbabker - open - 12 Jun 2016
avatar mbabker mbabker - change - 12 Jun 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2016
Labels Added: ?
avatar Fedik Fedik - test_item - 12 Jun 2016 - Tested successfully
avatar Fedik
Fedik - comment - 12 Jun 2016

I have tested this item successfully on c848f8f


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

avatar brianteeman brianteeman - change - 13 Jun 2016
Category Cache
avatar csthomas
csthomas - comment - 13 Jun 2016

Do you wondered about the publish up/down time and cache time?

What about if I set cache to 24 hours and I have publish up time to show module ex. on Monday at 00:00.
For some groups module won't show at correct time. The same for publish down.

I know you can say that I should disable cache for that module and problem disappears.
If that is not a problem then OK, you do not need to read below.

Other way you can load all modules means with out checking dates and cache that.
After that each time when you load you have to filter by dates (publish_up/down)

avatar mbabker
mbabker - comment - 13 Jun 2016

The same issue is going to exist with anything that is cached and has publish up/down times. If you're caching component or module content, you're hitting this issue already. If your site has such a requirement that these things need to be precise to the second then caching is probably something you have disabled to begin with; otherwise if you can live with things generally being off by a little bit then it's an acceptable tradeoff or you manually go in and clear the cache for the affected groups.

avatar csthomas
csthomas - comment - 13 Jun 2016

I just wanted to note this issue there.
If you say it is OK, then so be it.

avatar mbabker
mbabker - comment - 13 Jun 2016

It's a legitimate concern to be aware of but it's not something that's unique to this patch. In general that's one of the tradeoffs you're going to hit when using a caching mechanism in front of a system which has time based conditionals.

avatar mbabker
mbabker - comment - 13 Aug 2016

Is this going anywhere or can I close for lack of interest?

avatar andrepereiradasilva andrepereiradasilva - test_item - 15 Aug 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 15 Aug 2016

I have tested this item successfully on c848f8f


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

avatar alikon alikon - test_item - 23 Aug 2016 - Tested successfully
avatar alikon
alikon - comment - 23 Aug 2016

I have tested this item successfully on c848f8f


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2016
Category Cache Libraries Cache
avatar brianteeman brianteeman - change - 24 Aug 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 24 Aug 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 25 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-25 20:12:56
Closed_By rdeutz
avatar rdeutz rdeutz - close - 25 Aug 2016
avatar rdeutz rdeutz - merge - 25 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 25 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment