Skip to content

[6.2] Remove usages of cache deprecated code in CacheModel#47954

Merged
laoneo merged 3 commits into
joomla:6.2-devfrom
joomdonation:remove_deprecated_code_in_cachemodel
Jun 18, 2026
Merged

[6.2] Remove usages of cache deprecated code in CacheModel#47954
laoneo merged 3 commits into
joomla:6.2-devfrom
joomdonation:remove_deprecated_code_in_cachemodel

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

The CacheModel class in com_cache still uses some deprecated method to create cache controller. This PRs update code in that model to remove the usages of these deprecated code. I also simplied the code getCache method abit, reduce the options passed because they have same value with default cache options

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 frontend of your site, view an article for example to have cache generated
  • Apply patch
  • From administrator area of your site, access to System -> Maintenance -> Clear Cache, try to Delete, Delete All, Clear Expired Cache and make sure it is still working OK

Actual result BEFORE applying this Pull Request

Works, but use 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 b85db56 into joomla:6.2-dev Jun 18, 2026
57 checks passed
@laoneo

laoneo commented Jun 18, 2026

Copy link
Copy Markdown
Member

Works as expected, thanks!

@laoneo laoneo added this to the Joomla! 6.2.0 milestone Jun 18, 2026
@joomdonation joomdonation deleted the remove_deprecated_code_in_cachemodel branch June 18, 2026 07:36
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