No Code Attached Yet
avatar GabeTheApe
GabeTheApe
23 Apr 2024

Steps to reproduce the issue

System Configuration > System

  • set cache to "on - advanced caching"

Article

  • create an Article

Menu

  • create Menu Entry with created Article

Plugins System - Pagecache

  • add Menu entry in the list of "exclude Menu entries"

call page

change Article content

call or reload page again

Expected result

the page should load the new content

Actual result

the page still loades the old content or the cache needs to be cleared.

System information (as much as possible)

Joomla 5.1

Additional comments

Some Articles need to be excluded from the Cache, because they have varying content.

avatar GabeTheApe GabeTheApe - open - 23 Apr 2024
avatar GabeTheApe GabeTheApe - change - 23 Apr 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Apr 2024
avatar richard67
richard67 - comment - 23 Apr 2024

@joomdonation Could that be fixed in a similar way as you did with PR #42871 for the exclude URLs?

avatar joomdonation
joomdonation - comment - 23 Apr 2024

@richard67 To be able to give an understandable explanation, I would have to read the code again. But the short answer is No, this could not be fixed in the similar way with the other PR I did (that PR fixed a bug in System - Page Cache plugin, but there is no bug in that plugin related to this issue)

Basically, the System Cache (cache is set to on - advanced caching under Global Configuration) is not aware of (or not depend on) the settings from System - Page Cache plugin.

What's happening here is that the page is not being cached by System - Page Cache plugin when the menu item is excluded (that's why I said there is no bug earlier). But Joomla has another tier of caching when the page is displayed - handled in display method of DisplayController, independent with System - Page Cache plugin. That's why the cached content is still being displayed for this case.

This might be a won't fix issue. I wonder if you still need to turn on System - Cache when the System - Page Cache is already in used? The whole page is cached already, so look like by enabling both, we have cache on cache.

avatar brianteeman
brianteeman - comment - 23 Apr 2024

This might be a won't fix issue.

We should just kill the cache plugin. It works as intended but not as users expect. Resulting in confusion and complaints

avatar Hackwar Hackwar - change - 26 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-26 18:17:29
Closed_By Hackwar
avatar Hackwar Hackwar - close - 26 Apr 2024
avatar Hackwar
Hackwar - comment - 26 Apr 2024

The caching in the global configuration is a different caching than the page cache plugin. The page cache plugin is a vastly more agressive caching and only usefull for static websites. As Brian wrote, this is working as intended, even though not as expected, and is not a bug.

Add a Comment

Login with GitHub to post a comment