No Code Attached Yet Information Required
avatar PixedBo
PixedBo
31 Jan 2025

Steps to reproduce the issue

Activate the “Page Cache” plugin and leave the cache to OFF in “global configuration”.

Expected result

I still expect to be able to set the number of minutes after which the “Page Cache” cache expires and is regenerated.

Actual result

The field remains hidden so I cannot set the minutes for Page Cache. I have to necessarily enable another type of cache in order to display that field.

System information (as much as possible)

Joomla4 and Joomla5 standard, no extensions installed.

Additional comments

This is a problem I already encountered with Joomla4 but had not given it much thought.
In Joomla3 even if the cache in “global configuration” is disabled we can set the Cache Time (default 15 minutes) and this is also used to manage the “Page Cache” (the plugin), which can be enabled even if the cache in “global configuration” is on OFF.
In Joomla4/5 the operation is the same (I can activate Page Cache independently) but if I leave OFF the cache in “global configuration” the “minutes” field is hidden.
How does this work? Are the default 15 minutes taken? In order to change that number do I have to turn on one of the two caches in “global configuration” but then they will be ignored in favor of Page Cache?

Even in the documentation is written how to set the global configuration for Page Caching, but it refers to Joomla3 where those fields are visible even if you set the cache to OFF.

avatar PixedBo PixedBo - open - 31 Jan 2025
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Jan 2025
avatar PixedBo PixedBo - change - 31 Jan 2025
The description was changed
avatar PixedBo PixedBo - edited - 31 Jan 2025
avatar PixedBo PixedBo - change - 31 Jan 2025
The description was changed
avatar PixedBo PixedBo - edited - 31 Jan 2025
avatar PixedBo PixedBo - change - 31 Jan 2025
The description was changed
avatar PixedBo PixedBo - edited - 31 Jan 2025
avatar PixedBo PixedBo - change - 31 Jan 2025
The description was changed
avatar PixedBo PixedBo - edited - 31 Jan 2025
avatar chmst
chmst - comment - 4 Feb 2025

When cache is not active, it is not relevant and when you activate the cache, you can set the time. Why is this a problem for you?

avatar chmst chmst - change - 4 Feb 2025
Labels Added: Information Required
avatar chmst chmst - labeled - 4 Feb 2025
avatar PixedBo
PixedBo - comment - 4 Feb 2025

It's a bit different: i can have the cache set to OFF in Global Configuration but still use the "Page Cache Plugin" if I activate it (it's a different type of cache from the two in global configuration).
The problem is that i can use the Page Cache but am unable to set the cache time because the field is invisible as the other type of cache is set to OFF.

avatar brianteeman
brianteeman - comment - 11 Feb 2025

The cache time field in the global configuration is nothing to do with the page cache plugin. There is no cache time for the page cache plugin. the cache is never invalidated unless you change the content and/or purge the cache

avatar joomdonation
joomdonation - comment - 11 Feb 2025

When cache is not active, it is not relevant and when you activate the cache

@chmst If you enable System - Page cache plugin, it will always cache your pages, independent with cache setting in global configuration.

The cache time field in the global configuration is nothing to do with the page cache plugin. There is no cache time for the page cache plugin. the cache is never invalidated unless you change the content and/or purge the cache

@brianteeman From what I see, the cache time in global configuration is used by our cache API to get cached content, so it affects page cache plugin, too. Made a quick test with Page Cache plugin with Cache Time set to 1 minute and confirm that behavior.

How does this work? Are the default 15 minutes taken

@PixedBo It still uses Cache Time setting in Global configuration. While waiting for proper solution, you can use this workaround:

  • Set System Cache to one of the tow ON options (so that the Cache Time setting is displayed in the UI). Set Cache Time to the value you want.
  • Then set System Cache back to OFF
  • Finally, Save the configuration. Although the Cache Time is not displayed in the UI when you set System Cache to Off, it is still being saved to Joomla configuration file and the cache API will use that value.
avatar PixedBo
PixedBo - comment - 11 Feb 2025

@PixedBo It still uses Cache Time setting in Global configuration. While waiting for proper solution, you can use this workaround:

* Set **System Cache** to one of the tow ON options (so that the Cache Time setting is displayed in the UI). Set Cache Time to the value you want.

* Then set **System Cache** back to OFF

* Finally, Save the configuration. Although the Cache Time is not displayed in the UI when you set System Cache to Off, it is still being saved to Joomla configuration file and the cache API will use that value.

Thanks for the suggestion, that did the trick.

Add a Comment

Login with GitHub to post a comment