you_know |
I am a computer-interested student from Germany, posting some links that seem interesting to me. |
Just a few minutes ago, I created a Joomla Module that had to execute a lot of queries. This made the whole site a bit slower. Not much, but noticeable. As the Module’s content doesn’t change often, it could be cached.
Joomla already has a built-in solution for Module caching. In your Modules XML file, add the following param:
<param name="cache" type="list" default="1" label="Caching" description="Select whether to cache the content of this module">
<option value="1">Use global</option>
<option value="0">No caching</option>
</param>
As soon as you enable the Cache in your Global configuration and set the caching parameter of your module to “Use global”, it will be cached. :-)