
This means that the views associated with contacts will be cachable unless there is session data keyed by com_ – which will be the case if in the user session the user has displayed a contact form (e.g. For example, at the time of this writing (Joomla version 3.9.2) for the Contacts component we find in components/com_contact/controller.php if (JFactory::getApplication()->getUserState('com_') = null) However, you can easily discover what criteria are used because for each of the site components they are coded in the site controller.php file. The criteria are different for each component. This is determined by the Joomla core component developers and coded in the component PHP code. How can you select which component views get cached, and under what circumstances? Alas, you can't do this. Then when you refresh the web page you should see the change that you made to the cache file.

Using the editor, change one letter within the article text in the cache file and save the file. However, you can demonstrate that the cache is working if you edit the cache file in the cache/com_content directory using a basic text editor. This is because whenever the edit is saved, Joomla clears the cache for that article. If you edit and save that article then refresh the site page, you will find that the site displays the updated text this time. These result from the use of cache which developers have coded within the Joomla application. You'll also find other directories such as cache/com_languages (as displaying the page involves loading the current language, and this will be cached as well) and also directories relating to module cache, e.g. Check your file system and you should find a folder cache/com_content containing a cache file.

To check it's working, go to your site, ensure that you are logged out, and navigate to a web page which displays an article. (Note that the Cache Time in the Global Configuration is in minutes but the Cache Time in the Module settings is in seconds.) No caching – this module will not be cached.Use Global – this module will be cached (with the Global option now having been set to Conservative caching).
