RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
14 May 2025

Summary of Changes

The cache of new mod_articles is not automatically cleared.

Testing Instructions

Enable Joomla caching, show "Articles" module, ensure that module is cached:
See /administrator/cache/mod_articles folder with cache files.
Make changes to articles/categories displayed in this module.
Load frontend with this module as a guest.

Actual result BEFORE applying this Pull Request

See cached module version after changes in articles.

/administrator/cache/mod_articles folder is not deleted on article changes.

Expected result AFTER applying this Pull Request

See module output updated.
/administrator/cache/mod_articles folder is deleted on article changes.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • No documentation changes for manual.joomla.org needed

avatar Denitz Denitz - open - 14 May 2025
avatar Denitz Denitz - change - 14 May 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2025
Category Administration com_categories
avatar Denitz Denitz - change - 14 May 2025
Labels Added: PR-5.3-dev
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2025
Category Administration com_categories Administration com_categories com_content
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2025
Category Administration com_categories com_content Administration com_categories com_content com_fields
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2025
Category Administration com_categories com_content com_fields Administration com_categories com_content com_fields Front End
avatar Denitz Denitz - change - 14 May 2025
Title
mod_articles cache is not automatically cleared
[5.3] mod_articles cache is not automatically cleared
avatar Denitz Denitz - edited - 14 May 2025
avatar exlemor
exlemor - comment - 19 May 2025

@Denitz - I apologize if I messed up something but when testing your PR, I see no difference before or after applying the PR.

Here is are steps I followed, please correct my stupidity if I did something wrong:

  1. Clean Installed Joomla 5.3.1 Nightly Build,
  2. Setup Conservative Caching in the Global Configuration,
  3. Turned on htaccess,
  4. Installed Joomla Patch Tester
  5. Installed Sample Data (to have some articles ;) )
  6. Setup Articles Module default settings in Casseiopeia module position: main-bottom

It shows:

Articles Module

About
About your home page
Joomla
Love
Millions

(I disable articles About your home page and Joomla and Love... check the front end, no change
clear cache in backend - the list shrinks to About, Millions as expected)

(testing the before condition)

I re-enable the 3 articles, then I apply your PR

( I re-disable articles About your home page and Joomla and Love, check the front end, no change
clear cache in backend - the list shrinks to About, Millions as expected)

so, both before and after PR same results, what did I mess up?

avatar Denitz
Denitz - comment - 20 May 2025

@exlemor The cache should be cleared automatically:

  1. Load the page with module, see all expected articles and see the cached data in /administrator/cache/mod_articles folder
  2. Unpublish article
  3. Reload frontend page - see the same module contents with unpublished article.
  4. Publish article back, apply patch
  5. Reload frontend to get the cache created
  6. Unpublish article
  7. Reload frontend, see the module is updated

Note that you should not be logged in frontend, otherwise caching is not applied.

avatar exlemor exlemor - test_item - 20 May 2025 - Tested unsuccessfully
avatar exlemor
exlemor - comment - 20 May 2025

I have tested this item 🔴 unsuccessfully on 45ec38b

I am sorry but even following your instructions (basically like mine) on a clean install and doing it 3 times to be sure, nothing changes each time.


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

avatar Denitz Denitz - change - 21 Aug 2025
The description was changed
avatar Denitz Denitz - edited - 21 Aug 2025
avatar Denitz
Denitz - comment - 21 Aug 2025

I've updated test instructions. Probably your module was not cached, or you was logged in and caching was not applied.

avatar exlemor exlemor - test_item - 23 Aug 2025 - Tested successfully
avatar exlemor
exlemor - comment - 23 Aug 2025

I have tested this item ✅ successfully on 45ec38b

I have tested this successfully - thanks @Denitz


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

avatar HLeithner
HLeithner - comment - 15 Oct 2025

This pull request has been automatically rebased to 5.4-dev.

avatar HLeithner
HLeithner - comment - 15 Oct 2025

This pull request has been automatically rebased to 6.1-dev.

avatar Denitz
Denitz - comment - 30 Oct 2025

@HLeithner Sorry, but why did you rebase to 6.1?
It's a clear bug: the cache contents of new 'mod_articles' are not cleared on article changes.
Should be fixed in 5.4 and 6.0 as well. Please revise.

avatar Denitz Denitz - change - 30 Oct 2025
The description was changed
avatar Denitz Denitz - edited - 30 Oct 2025
avatar HLeithner
HLeithner - comment - 30 Oct 2025

don't know why I labeled it as feature. I will change this. sorry.

avatar HLeithner HLeithner - change - 30 Oct 2025
Title
[5.3] mod_articles cache is not automatically cleared
[5.4] mod_articles cache is not automatically cleared
avatar HLeithner HLeithner - edited - 30 Oct 2025
avatar bembelimen bembelimen - test_item - 30 Oct 2025 - Tested successfully
avatar bembelimen
bembelimen - comment - 30 Oct 2025

I have tested this item ✅ successfully on 45ec38b


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

avatar bembelimen bembelimen - change - 30 Oct 2025
Status Pending Ready to Commit
avatar bembelimen
bembelimen - comment - 30 Oct 2025

RTC


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

avatar richard67 richard67 - change - 31 Oct 2025
Labels Added: RTC bug PR-5.4-dev
Removed: PR-5.3-dev
avatar richard67 richard67 - change - 31 Oct 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-10-31 17:39:38
Closed_By richard67
avatar richard67 richard67 - close - 31 Oct 2025
avatar richard67 richard67 - merge - 31 Oct 2025
avatar richard67
richard67 - comment - 31 Oct 2025

Thanks @Denitz for this bug fix, and thanks @exlemor and @bembelimen for testing.

Add a Comment

Login with GitHub to post a comment