PR-6.2-dev Architecture Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
14 Jun 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Our System - Joomla! Statistics still uses deprecated method Cache::getInstance method to create cache controller. This PR updates plugin, inject cache controller factory and use that injected factory to create cache controller instead.

Testing Instructions

  • Use Joomla 6.2
  • Go to System -> Global Configuration, System tab, set System Cache to one of the two ON options
  • Go to System -> Plugins, find System - Joomla! Statistics plugin. Click on it to edit and set Interval (hours) to 0, set Mode to Ask Again, Status to Enabled . Save it.
  • When the page reloaded, there will be a popup as you whether you want to Enable Joomla Statistics?, click on No button
  • Refresh the page, make sure the plugin is now disabled.

If you understand our cache API, code review should be faster. The idea is the plugin should still work the same as before

Actual result BEFORE applying this Pull Request

Works, but use deprecated code to create cache controller

Expected result AFTER applying this Pull Request

Works, without using deprecated code. The cache controller factory is properly injected into plugin.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomdonation joomdonation - open - 14 Jun 2026
avatar joomdonation joomdonation - change - 14 Jun 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2026
Category Front End Plugins
avatar joomdonation joomdonation - change - 14 Jun 2026
Labels Added: PR-6.2-dev
avatar laoneo laoneo - change - 18 Jun 2026
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-06-18 05:31:14
Closed_By laoneo
Labels Added: Architecture
avatar laoneo laoneo - close - 18 Jun 2026
avatar laoneo laoneo - merge - 18 Jun 2026
avatar laoneo
laoneo - comment - 18 Jun 2026

Thanks!

Add a Comment

Login with GitHub to post a comment