Skip to content

[6.2] Remove cache deprecated code in ApplicationModel#47956

Merged
laoneo merged 3 commits into
joomla:6.2-devfrom
joomdonation:remove_deprecated_code_in_application_model
Jun 19, 2026
Merged

[6.2] Remove cache deprecated code in ApplicationModel#47956
laoneo merged 3 commits into
joomla:6.2-devfrom
joomdonation:remove_deprecated_code_in_application_model

Conversation

@joomdonation

Copy link
Copy Markdown
Contributor

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

Currently, ApplicationModel class still uses the deprecated method Factory::getCache() to create cache. This PR update that code to use cache controller factory to create cache instead.

Testing Instructions

  • Use Joomla 6.2
  • Go to System -> Global Configuration, System tab, set System Cache to one of the two ON options
  • Access to System -> Maintenance -> Clear Cache, you will see different cache groups displayed
  • Go back to System -> Global Configuration, set System Cache to Off
  • Access to Access to System -> Maintenance -> Clear Cache again, make sure all cache groups except language are deleted/removed

Actual result BEFORE applying this Pull Request

  • Works, but uses deprecated code

Expected result AFTER applying this Pull Request

  • Works, without using deprecated code

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

@laoneo laoneo added the Architecture Pull requests which improve the architecture. label Jun 18, 2026
@laoneo laoneo merged commit 4687c0e into joomla:6.2-dev Jun 19, 2026
55 of 56 checks passed
@laoneo

laoneo commented Jun 19, 2026

Copy link
Copy Markdown
Member

Thanks!

@laoneo laoneo added this to the Joomla! 6.2.0 milestone Jun 19, 2026
@joomdonation joomdonation deleted the remove_deprecated_code_in_application_model branch June 19, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Pull requests which improve the architecture. PR-6.2-dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants