Web programming and optimization of Joomla sites
-
Published: 18 January 2018
Introduction
In all previous versions of JotCache was not possible to exclude modules which were put inside article content by means of special tags {loadposition position[, style]} or {loadmodule module[, title[, style]]}. Details of embedding of module content into article content are described in Joomla documentation How do you put a module inside an article? or numerous other articles as for example Embedding a Module into an Article (Joomla 3).
In JotCache 6.2 installation package is included new content plugin JotLoadmodule which together with other parts of JotCache allows to exclude embedded modules in similar way as it is possible for modules excluded from template position. JotLoadmodule uses same special tags {loadposition position[, style]} or {loadmodule module[, title[, style]]} and parameter setup for Style as Joomla core Content-Loadmodule plugin. For correct operation with JotCache is necessary to disable Content-Loadmodule plugin and enable JotLoadmodule plugin.
In most cases also is necessary to disable embedded module own caching (on Advanced tab -> Caching set to 'No caching' value). Please take into account that new JotLoadmodule plugin is not possible to use separately with oldier JotCache version (6.1 or previous versions).
Example
Let's take module News Flash which we like to insert into article 'Using Joomla!'.
At first it is necessary to make module setup:
Main settings
Menu assignment
No not forget to set module own caching. In most cases when is needed quick response for change of module content set 'No caching' value.
Second step is insertion of module content into selected article.
Open article edit page, set pointer to place where you want to have module content and click on Module button:
It opens modal window with modules. Click on 'News Flash'.
Final article text is here:
When you use JotCache administrator mode set to 'Mark':
you can see in frontend embedded module text into article content. This module content is excluded from JotCache caching:
Note: All images included into this article were compressed with short php script for minifying of png images (see: https://pngquant.org/#download | https://github.com/pornel/pngquant).
-
Published: 08 October 2015
Integration with JCH Optimize, Rokbooster and Scriptmerge
JotCache 5.2.0 has new feature, which was longer time expected from site administrators, allowing close collaboration with Joomla js&css optimization extensions. Four most used extensions were selected : JCH Optimize, Rokbooster, JBetolo and Scriptmerge. Each of them is using different internal processing to combine and compress website assets - html, javascript, css files. After evaluation on test servers were choosen three of them - JCH Optimize, Rokbooster and Scriptmerge for possible integration with JotCache. JBetolo was rejected because of unstable operation with page cache.
The selection of which of named extension shall be linked to JotCache operation is simple action on JotCache plugin setup form (Cache Operation Modes tab) :
But before the integration with JotCache set page caching off for carefull testing of asset processing in selected extension. It is not simple & fast operation because you have usually many different parameters for setup and you need carefully check site pages for optimal settings. When you are satisfied with asset processing then you can enable JotCache operation. JotCache can accept different settings of asset extension but for Rokbooster is required to set parameter 'Scan Method' to value - Joomla Header Scan :
The integration is working properly when all combined files (js and/or css) are loaded correctly with cached page even in case when combined files are cleaned from its own cache.
-
Published: 03 March 2015
New features in ver.5.1
Edit Page Invalidate
In previous versions of JotCache (ver.5.0 and before) when registered user with permission to create/edit frontend page was logged-in he could change content without any limitation but after his logout the page old content was shown until expiration or invalidation of the cached page. Such approach has its advantage (only final/reviewed content is shown to public) but in some cases is requested to immediately show new content to the public directly from cache. Here is possible in JotCache ver.5.1 to enable plugin parameter 'Edit Page Invalidate'.
-
Published: 23 June 2014
JotCache is often used on Virtuemart shopping sites with good results for much faster page responses. But in cases when shop was configured to run with different currencies until present time was not possible to use any page caching.