? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
30 Jan 2020

Pull Request for Issue #27073.

Summary of Changes

Adds category caching in routers to reduce number of queries.

Testing Instructions

Create some content or install sample data.
Navigate article/contact/newsfeeds pages.

Expected result

Still works.

Documentation Changes Required

No.

49fc58b 30 Jan 2020 avatar SharkyKZ CS
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jan 2020
Category Front End com_contact com_content com_newsfeeds
avatar SharkyKZ SharkyKZ - open - 30 Jan 2020
avatar SharkyKZ SharkyKZ - change - 30 Jan 2020
Status New Pending
avatar wilsonge
wilsonge - comment - 30 Jan 2020

This makes sense as a compromise for me as these are always readonly on the categories object

avatar jwaisner jwaisner - test_item - 30 Jan 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 30 Jan 2020

I have tested this item successfully on 49fc58b

Tested com_contacts, com_newsfeed, and com_article on frontend and backend. No issues after applying PR.


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

avatar richard67
richard67 - comment - 2 Feb 2020

@SharkyKZ Can we be sure that there is not any outdated information used from the cache? What if some admin deleted a category? Maybe it's a silly question. I don't really know when a router instance is created so the cache variable is created.

avatar SharkyKZ
SharkyKZ - comment - 2 Feb 2020

This cache doesn't persist across requests. It's possible for a category to be deleted within the same request (e.g. if it's deleted automatically or if you delete it yourself) between instantiating the router and building the link. But so far this hasn't been an issue.

avatar richard67
richard67 - comment - 2 Feb 2020

@SharkyKZ Thanks for clarification. Will test later.

avatar richard67 richard67 - test_item - 2 Feb 2020 - Tested successfully
avatar richard67
richard67 - comment - 2 Feb 2020

I have tested this item successfully on 49fc58b


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

avatar richard67 richard67 - change - 2 Feb 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 2 Feb 2020

RTC


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

avatar richard67 richard67 - change - 2 Feb 2020
Labels Added: ? ?
avatar rdeutz rdeutz - change - 3 Feb 2020
Labels
avatar rdeutz rdeutz - change - 3 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-03 13:33:39
Closed_By rdeutz
avatar rdeutz rdeutz - close - 3 Feb 2020
avatar rdeutz rdeutz - merge - 3 Feb 2020

Add a Comment

Login with GitHub to post a comment