We have 3 guests online
Home The News
31 | 07 | 2014
General
Amateur Radio
Web Programming
Web Programming
Maintenance release of JotCache - ver.1.2.1 PrintE-mail
Saturday, 23 October 2010 11:45

Based on sucessfull implementations of JotCache solution together with Virtuemart here are two improvements for JotCache ver.1.2.1 :

  • Component validation script jotcache.js was reworked for corrected behavior in IE8 browser
  • Module exclusions by means of jot tags for on site template can be now assigned to template positions containing not only alphanumeric characters but also characters '-'(hyphen) , '_'(underscore).

Some remarks to JotCache usage with Virtuemart are also included into JotCache FAQ.

Last Updated on Saturday, 23 October 2010 12:16
 
JotCache ver.1.2 - Joomla Page Caching Extended PrintE-mail
Saturday, 09 October 2010 20:10

JotCache solution consisting from JotCache Plugin and JotCache Component for advanced cache management has been successfully approved during last month on many heavy loaded websites (see also JotCache used on selected sites list). During implementation of oldier versions of JotCache were found as limitation that some non-standart implemented Joomla component or templates were not possible to proper adjust for smooth operation either using other URL query string parameters (not 'view' but e.g. 'page' or 'section') or missing jdoc:module tags in templates (e.g. Yootheme solution based on Warp). 

Thanks to Curtis Nehring of Cloae Web Designs with his intention to implement JotCache for Virtuemart e-commerce Joomla component and testing capabilities it was possible to add new powerfull feature to the solution - exclusion of pages from caching based on URL query parameters. Details about this new feature you can find in JotCache Help. The results of JotCache implementation in Virtuemart are very promissing cutting download time up to 70% of previous (already JS/CSS optimized) website speed.

Implementation of caching techniques on large websites is usually not fast 'switch-on' process but good preparation and elaborate testing. JotCache Component supports start-up tasks with extended cache management. For web administrators which have intention to implement JotCache on their websites and they have some open questions here is simple saying - do not hesitate to make contact.

Installation files for both parts of the solution (ver.1.2) are available on the download page.

Last Updated on Sunday, 10 October 2010 03:16
 
JotCache ver.1.1 - Page Caching with powerful management PrintE-mail
Friday, 20 August 2010 15:10

New combination of system plugin and management component covers tailored processing in JotCache ver.1.1 for all types of extensions : static nad dynamic modules as well as components with static content and dynamic forms. Extended marking of cached content allows fast checking of cache operation in frontend and backend (new feature for easy selecting of cached pages which needs cache reset). Detailed description is given in JotCache Help.

Last Updated on Wednesday, 22 September 2010 10:25
 
JotCache Plugin - maintenance release ver.1.0.2 PrintE-mail
Friday, 13 August 2010 16:50

Based on very good feedback from users of JotCache now is available new version of JotCache Plugin ver.1.0.2. This version is JotCache maintenance release solving recognition of special characters in attributes of template jot tags and adjusting the cache processing for submitted forms. Sucessfull implementation can be found in the list of JotCache Used On Sites. Installation file is available on download page.

Last Updated on Friday, 13 August 2010 16:58
 
JotCache ver.1.2 Help PrintE-mail

JotCache Usage

Purpose

JotCache is advanced solution for page caching in Joomla 1.5 search framework. JotCache consists from JotCache Plugin and optionally (but strong recommended) from JotCache Component. JotCache Plugin is extended replacement of standart System-Cache plugin with following enhancements :

  • Fast-changing modules on the web page can be refreshed with actual content during each user access. You can mark the module positions with fast changeable content in site template and these position will be refreshed during each user access to related web page. The rest parts of page will be taken from cached content as it is usual by standart plugin System - Cache.
  • Cached page content can be compressed before saving into the cache. JotCache Plugin has option to compress (gzlib) cached pages before storing to the cache, therefore the web access to cached content is accelerated. Compressing function covers static (page) as well as dynamic module content.
  • Possibility for site administrator to clear (to make empty) the cache only for selected pages. With accompanied JotCache Component here it is possible to see the actual cached pages linked to used component and view. You can delete the selected cached pages (marked in component list view) leaving the rest of cached pages intact. For easier finding which pages are related to changed content it is possible to mark these pages simply calling them in the frontend with mark option enabled.
  • Fast check of cache operation on production site front-end without disturbing other users. For easy overview of cache mechanism on front-end pages administrator can mark his/her browser access with specific cookie allowing to display marked page and module content (in front-end) solely to administrator.
  • Because some dynamic components (mostly forms) needs refresh after each change you can select which components and their specific views shall be excluded from page caching. Starting with JotCache ver.1.2 here is also possiblity to exclude from caching selected pages based on URL query parameters.

Module positions excluded from page caching

In the Joomla 1.5 CMS framework each module is placed to template specific position (see Administrator > Extensions > Module Manager / column Position. For graphical presentation see Administrator > Extensions > Template Manager, click on used template name and then click toolbar button Preview).

Module exclusions can be implemented on all Joomla templates which are using standart jdoc:include tags (inclusive Artisteer generated templates). Templates using non-standart template processing (e.g. Warp system of Yootheme) cannot be adapted for JotCache exclusion described further.

In the Joomla template each module position is tagged with following tag :

<jdoc:include type="modules" name="xxx" ... />

where xxx is position name.

To exclude specific module position from page caching it is necessary to mark this position in template source (mostly index.php) with special JotCache HTML comment tags - see example :

<td>
   <!-- jot user2 s style="xhtml" --><jdoc:include type="modules" name=user2" style="xhtml" /><!-- jot user2 e -->
</td>


Text in the marking tags is separated with exactly one (1) space starting with word jotfollowed by name_of_position jot_flag params

where

name_of_position - name of position as it is used in jdoc tag
jot_flag - 's' for start marking, 'e' for end marking
params - any kinds of jdoc parameters separated with space character

Used jot tags have to close embrace the jdoc tag for proper operation.

Mark in your template only module positions which you like to be steady refreshed. When page is cached then all JotCache mark tags are stored with cached content. During recall of cached content the marked positions are replaced with module newest content.

Components excluded from page caching

Starting with JotCache, ver.1.1 we have available powerfull tool for excluding components from caching process. On the toolbar of Cache Management it is located Exclude button which opens Excluding form :

In this form are listed all components installed in Joomla CMS identified by Component Name and internal code (option) which is also one part of page URL.
You can exclude from caching entire component processing with checkbox Excluded on and Views input empty or only specific views of the component with checkbox
Excluded on and Views input contains list of excluded views separated by comma. When you want to remove component from Exclude Component list then simply uncheck appropriate checkbox and press Apply or Save button.

Note : Shown selection for Articles is only for demo purposes. On production site are usually excluded Contacts and Polls.

Starting with JotCache ver.1.2 here is also possibility to remove selected pages based on parameters of URL query string. As it is generally known query parameters pairs (name and value) are located in the part of URL starting with ? character and each pair is separated with & character. For exclusion purposes here is necessary to use parameters pairs of URL query in form before Routing is applied because of internal operation of JotCache plugin. Parameter pairs are simply inserted into given component line in Exclude Views & Query Parameters input box (here taken as example from URL query string 'index.php?page=shop.product_details&flypage=flypage.tpl&product_id=1&category_id=1&option=com_virtuemart&Itemid=56') :

Multiple parameters pairs are separated with ',' character and can be intermixed with component views as described in previous section.

Note : Some Joomla components are using ':' character as separator inside of parameter value. In these cases ':' character is automatically removed from exclusion definition during save process because of command filtering in Joomla (safety measure for JotCache not influencing proper exclusion processing).

When inserting or changing text in Exclude Views & Query Parameters input box (events 'click' and 'onchange') then automatic validation check on above described rules is performed. Only fully validated definitions are possible to save in database.

Fast check of cache operation

Check in front-end

For proper marking of cached content you need to have installed not only JotCache plugin but also the JotCache component. For page marking to put it in the operation it is necessary :

  1. in the JotCache plugin parameters to set Mark Caching  to Yes :
  2. JotCache Parameters

  3. and in the JotCache component click on Set Mark button :

With Set Mark button here it is sent marking cookie to your browser and then you can see marked page title (with three @@@) when page is comming from cache :

JotCache Page Title Marking

and steady refreshed module positions are marked with dashed red outline :

JotCache Module Marking

Check in backend

The marking can be used also for fast selection of pages which is necessary to remove from the cache. The recommended selection practice is following :

  1. check if list of active cached pages has any "Yes" in Mark column (use top combobox for selecting)
  2. reset the marks for given pages with ResetMark button (the button is shown after click on SetMark, when SetMark is on toolbar)
  3. click on SetMark button to start active marking
  4. open/reload pages in website frontend which you like to be marked
  5. Back in Administrator Cache Management click on Refresh button. You shall see in Mark column "Yes" for all in frontend opened/reloaded pages (you can select only marked pages with Select Mark combobox)

Selected files can be deleted as described in the following section.

Cache management

With JotCache Component you have possibility to look into one-to-one relation between cached page file (with hashed name e.g. 8d2146c2a4b1b3c9d65bac698c9115a5.php) and its original resource (component name, view, content id). This one-to-one relation is stored in database.

Starting with JotCache ver.1.1 here are two important changes to Cache management operation. At first JotCache component is now showing ONLY active cached pages (pages not yet expired). Second change relates to reassigned Refresh button on the toolbar. Refresh button has no more synchronising action between database and cache file system, but it is now assigned to pure refresh of cached pages list (for administrator convenience when he works with opened Cache management page).

With filtering and checking (as described in the section Check in backend) here it is easy to select cached page contents for delete operation :


JotCache Install

Recommended install procedure :

  1. Install JotCache Plugin from plg_system_jotcache_x.x.x_j15.zip via Administrator > Extensions > Install/Uninstall / Upload Package File.
  2. Install JotCache Component from com_jotcache_x.x.x_j15.zip via Administrator > Extensions > Install/Uninstall / Upload Package File.
  3. Open Plugin management : Administrator > Extensions > Plugin Manager / in Select type put 'system' and disable 'System - Cache' (when enabled) and open JotCache edit. Set plugin parameters as you like and save it with plugin enabled.
  4. Reset the old cache content with Tools > Clean Cache select all items and press DELETE button.
  5. When you are using System SEF plugin then JotCache plugin have to follow the System SEF plugin in the Joomla plugin list (adjust order in Extensions > Plugin Manager, the best position for JotCache is the last item in the list)

Uninstall

Recommended uninstall procedure :

  1. Uninstall JotCache Component (when installed) : Administrator > Extensions > Install/Uninstall > Components check JotCache and press Uninstall button.
  2. Uninstall JotCache Plugin : Administrator > Extensions > Install/Uninstall > Plugins check JotCache and press Uninstall button.

Now are all parts of JotCache removed from the application and database.

Upgrade from old version

Uninstall the component and the plugin as described above. Then install new version of JotCache as described in 'Installation'. 

Administration

JotCache Plugin

Because JotCache Plugin is advanced replacement of System - Cache it is necessary to disable system cache plugin in Administration > Extensions > Plugin Manager.

Open in Plugin Manager JotCache plugin parameters :

JotCache Parameters

and set their values to required operation mode :

  1. Browser caching (Yes) - Web server is forcing the user browser to local cache of the sent content
  2. Cache lifetime - Cached web page remains x minutes in page cache stored
  3. Compress cached content (Yes) - In cached content are whitespaces removed and then the content is compressed (gzlib)
  4. Mark caching (Yes) - Condition for displaying Set Mark in JotCache component (for presentation of frontend cache marking and backend check have to be both conditions met : Plugin Mark caching=Yes and Component Set Mark=On)

After saving JotCache parameters check if the JotCache plugin is enabled and located as last item in system plugins list (if it is not then correct status and items order).

JotCache Component

JotCache Component is management layer over the basic JotCache Plugin functions containing :

  • Overview of one-to-one relation between cached page file (with hashed name e.g. 8d2146c2a4b1b3c9d65bac698c9115a5.php) and its original resource (component name, view, content id). The list is showing ONLY active cached pages (pages not yet expired).

    This one-to-one relation is stored in database. When it is necessary to reload the file list on JotCache Management page simply press Refresh button on component's toolbar.

    Refresh also takes care for synchronizing page cache in the file system with database content. Because of different Joomla core functions concerning system cache (located in Global settings and Tools – e.g. system page cache is cleared outside JotCache Management (Administrator > Tools > Clean Cache)) here can be that database content is not matching all cache files in server file system.
    Similar condition also happens when you start caching of page content with JotCache and system page cache is not empty. Pages cached prior JotCache cache operation are not displayed in the JotCache Component overview.

  • Filtering the list of cached pages according component name, component view and page mark

  • Deleting selected cached pages with possibility of individual or group (top check-box in the table header) checking of cached page contents for delete operation



  • Marking cached content for administrator in the frontend with Set Mark button pressed - see Fast check of cache operation (frontend and backend).

  • Selecting components and their specific views which shall be excluded from page caching.

Notes

  1. Content Id reflects Id of specific component e.g. Content or Weblinks....
  2. Created date presents first date/time of save of cached content via JotCache (this date/time is not refreshed with each repeating save of the cached page file)


Last Updated on Saturday, 09 October 2010 19:17
 
JotCache ver.1.1 Help PrintE-mail

JotCache Usage

Purpose

JotCache is advanced solution for page caching in Joomla 1.5 search framework. JotCache consists from JotCache Plugin and optionally (but recommended) from JotCache Component. JotCache Plugin is extended replacement of standart System-Cache plugin with following enhancements :

  • Fast-changing modules on the web page can be refreshed with actual content during each user access. You can mark the module positions with fast changeable content in site template and these position will be refreshed during each user access to related web page. The rest parts of page will be taken from cached content as it is usual by standart plugin System - Cache.
  • Cached page content can be compressed before saving into the cache. JotCache plugin has option to compress (gzlib) cached pages before storing to the cache, therefore the web access to cached content is accelerated. Compressing function covers static (page) as well as dynamic module content.
  • Possibility to clear the cache only for selected pages. With accompanied JotCache Component here it is possible to see the actual cached pages linked to used component and view. You can delete the selected cached pages (marked in component list view) leaving the rest of cached pages intact. For easier finding which pages are related to changed content it is possible to mark these pages simply calling them in the frontend with mark option enabled.
  • Fast check of cache operation on production site front-end without disturbing other users. For easy overview of cache mechanism on front-end pages administrator can mark his/her browser access with specific cookie allowing to display marked content (in front-end) solely to administrator.
  • Because some dynamic components (mostly forms) needs refresh after each change you can select which components and their specific views shall be excluded from page caching.

Module positions excluded from page caching

In the Joomla 1.5 CMS framework each module is placed to template specific position (see Administrator > Extensions > Module Manager / column Position. For graphical presentation see Administrator > Extensions > Template Manager, click on used template name and then click toolbar button Preview).

In the Joomla template each module position is tagged with following tag :

<jdoc:include type="modules" name="xxx" ... />

where xxx is position name.

To exclude specific module position from page caching it is necessary to mark this position in template source (mostly index.php) with special JotCache HTML comment tags - see example :

<td>
   <!-- jot user2 s style="xhtml" --><jdoc:include type="modules" name=user2" style="xhtml" /><!-- jot user2 e -->
</td>


Text in the marking tags is separated with exactly one (1) space starting with word jotfollowed by name_of_position jot_flag params

where

name_of_position - name of position as it is used in jdoc tag
jot_flag - 's' for start marking, 'e' for end marking
params - any kinds of jdoc parameters separated with space character

Used jot tags have to close embrace the jdoc tag for proper operation.

Mark in your template only module positions which you like to be steady refreshed. When page is cached then all JotCache mark tags are stored with cached content. During recall of cached content the marked positions are replaced with module newest content.

Components excluded from page caching

Starting with JotCache, ver.1.1 we have available powerfull tool for excluding components from caching process. On the toolbar of Cache Management it is located Exclude button which opens Excluding form :

In this form are listed all components installed in Joomla CMS identified by Component Name and internal code (option) which is also one part of page URL.
You can exclude from caching entire component processing with checkbox Excluded on and Views input empty or only specific views of the component with checkbox
Excluded on and Views input contains list of excluded views separated by comma.
Note : Shown selection for Articles is only for demo purposes. On production site are usually excluded Contacts and Polls.

Fast check of cache operation

Check in front-end

For proper marking of cached content you need to have installed not only JotCache plugin but also the JotCache component. For page marking to put it in the operation it is necessary :

  1. in the JotCache plugin parameters to set Mark Caching  to Yes :
  2. JotCache Parameters

  3. and in the JotCache component click on Set Mark button :

With Set Mark button here it is sent marking cookie to your browser and then you can see marked page title (with three @@@) when page is comming from cache :

JotCache Page Title Marking

and steady refreshed module positions are marked with dashed red outline :

JotCache Module Marking

Check in backend

The marking can be used also for fast selection of pages which is necessary to remove from the cache. The recommended selection practice is following :

  1. check if list of active cached pages has any "Yes" in Mark column (use top combobox for selecting)
  2. reset the marks for given pages with ResetMark button (the button is shown after click on SetMark, when SetMark is on toolbar)
  3. click on SetMark button to start active marking
  4. open/reload pages in website frontend which you like to be marked
  5. Back in Administrator Cache Management click on Refresh button. You shall see in Mark column "Yes" for all in frontend opened/reloaded pages (you can select only marked pages with Select Mark combobox)

Selected files can be deleted as described in the following section.

Cache management

With JotCache Component you have possibility to look into one-to-one relation between cached page file (with hashed name e.g. 8d2146c2a4b1b3c9d65bac698c9115a5.php) and its original resource (component name, view, content id). This one-to-one relation is stored in database.

Starting with JotCache ver.1.1 here are two important changes to Cache management operation. At first JotCache component is now showing ONLY active cached pages (pages not yet expired). Second change relates to reassigned Refresh button on the toolbar. Refresh button has no more synchronising action between database and cache file system, but it is now assigned to pure refresh of cached pages list (for administrator convenience when he works with opened Cache management page).

With filtering and checking (as described in the section Check in backend) here it is easy to select cached page contents for delete operation :


JotCache Install

Recommended install procedure :

  1. Install JotCache Plugin from plg_system_jotcache_x.x.x_j15.zip via Administrator > Extensions > Install/Uninstall / Upload Package File.
  2. Install JotCache Component from com_jotcache_x.x.x_j15.zip via Administrator > Extensions > Install/Uninstall / Upload Package File.
  3. Open Plugin management : Administrator > Extensions > Plugin Manager / in Select type put 'system' and disable 'System - Cache' (when enabled) and open JotCache edit. Set plugin parameters as you like and save it with plugin enabled.
  4. Reset the old cache content with Tools > Clean Cache select all items and press DELETE button.
  5. When you are using System SEF plugin then JotCache plugin have to follow the System SEF plugin in the Joomla plugin list (adjust order in Extensions > Plugin Manager, the best position for JotCache is the last item in the list)

Uninstall

Recommended uninstall procedure :

  1. Uninstall JotCache Component (when installed) : Administrator > Extensions > Install/Uninstall > Components check JotCache and press Uninstall button.
  2. Uninstall JotCache Plugin : Administrator > Extensions > Install/Uninstall > Plugins check JotCache and press Uninstall button.

Now are all parts of JotCache removed from the application and database.

Upgrade from old version

Uninstall the component and the plugin as described above. Then install new version of JotCache as described in 'Installation'. 

Administration

JotCache Plugin

Because JotCache Plugin is advanced replacement of System - Cache it is necessary to disable system cache plugin in Administration > Extensions > Plugin Manager.

Open in Plugin Manager JotCache plugin parameters :

JotCache Parameters

and set their values to required operation mode :

  1. Browser caching (Yes) - Web server is forcing the user browser to local cache of the sent content
  2. Cache lifetime - Cached web page remains x minutes in page cache stored
  3. Compress cached content (Yes) - In cached content are whitespaces removed and then the content is compressed (gzlib)
  4. Mark caching (Yes) - Condition for displaying Set Mark in JotCache component (for presentation of frontend cache marking and backend check have to be both conditions met : Plugin Mark caching=Yes and Component Set Mark=On)

After saving JotCache parameters check if the JotCache plugin is enabled and located as last item in system plugins list (if it is not then correct status and items order).

JotCache Component

JotCache Component is management layer over the basic JotCache Plugin functions containing :

  • Overview of one-to-one relation between cached page file (with hashed name e.g. 8d2146c2a4b1b3c9d65bac698c9115a5.php) and its original resource (component name, view, content id). The list is showing ONLY active cached pages (pages not yet expired).

    This one-to-one relation is stored in database. When it is necessary to reload the file list on JotCache Management page simply press Refresh button on component's toolbar.

    Refresh also takes care for synchronizing page cache in the file system with database content. Because of different Joomla core functions concerning system cache (located in Global settings and Tools – e.g. system page cache is cleared outside JotCache Management (Administrator > Tools > Clean Cache)) here can be that database content is not matching all cache files in server file system.
    Similar condition also happens when you start caching of page content with JotCache and system page cache is not empty. Pages cached prior JotCache cache operation are not displayed in the JotCache Component overview.

  • Filtering the list of cached pages according component name, component view and page mark

  • Deleting selected cached pages with possibility of individual or group (top check-box in the table header) checking of cached page contents for delete operation



  • Marking cached content for administrator in the frontend with Set Mark button pressed - see Fast check of cache operation (frontend and backend).

  • Selecting components and their specific views which shall be excluded from page caching.

Notes

  1. Content Id reflects Id of specific component e.g. Content or Weblinks....
  2. Created date presents first date/time of save of cached content via JotCache (this date/time is not refreshed with each repeating save of the cached page file)


Last Updated on Friday, 20 August 2010 14:25
 
« StartPrev1234567NextEnd »

Page 3 of 7
Copyright © 2014 OM1VA Web Site. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
1216360296_9M2MT.jpg
Board

Some years ago I found Joomla Content Management System (CMS) - fascinating open-source world-wide project as very good and solid basis for creating and maintaining of radio amateur web sites. I am very glad that number of friends, clubs and organisations utilize the power of Joomla CMS. Last time I recognized new fresh impressive pages of OM9OT Old-Timers Club SARA Web Site or OK2IEN Web Pages. For more interesting examples see my list of Selected Joomla Ham Web Sites .