PR-5.3-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. Make changes to articles/categories displayed in this module.

Actual result BEFORE applying this Pull Request

See cached module version.

Expected result AFTER applying this Pull Request

See module output updated.

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.

Add a Comment

Login with GitHub to post a comment