JotCache Frequently Asked Questions

This part od Q & A serves to clarification / explaination of different functions of JotCache extension.

1106 hits
Can I cache separatelly pages by browser type ?


In case when you need to cache different page content having the same load URL (e.g. different content generated  for some browser types (IE8, IE9) or browser width (desktop, mobile)) then you can use JotCache Browser split function. You can use this setup for setting which browser types are included in common cache, which other can have individual cache storage and which one can be full excluded from page caching.

NOTE : Browser type is derived from user browser agent string during page request.

1050 hits
What is recommended cron job frequency ?


JotCache package contains two different script templates for cron job operation :

A. cron.php - for page cache cleaning (removing expired cached pages from the storage)

B. cron_recache.php - for caching of pages with two different modes :

  1. mode recache : for all pages which are already in cache storage (active as well as expired cached pages) is page by page refreshed latest available content. Range of refreshed pages can be narrowed by rules in cron script.
  2. mode crawler : which operates as known web crawlers visiting own Joomla site page by page starting with the site homepage. In this mode is possible to set depth of page linked hierarchy to limit crawling on the site.

Frequency of repeating cron runs depends on number of site pages, processing time of pages during recache and visitors load. As the first approach you can use :

for case A. run each hour of day (you can follow result of cleaning in cleaning log of JotCache when it is enabled).

for case B. run mode recache each day once in the time when load of the site is minimal

1031 hits
Which extensions belongs to JotCache ?


JotCache solution has following parts of operation :

  1. JotCache plugin (system) - core unit for realtime page caching
  2. JotMarker plugin (system) - used solely for recognition of modules excluded from caching
  3. plugins in the group of jotcacheplugins :
    1. Crawler plugin - can crawl through site pages to the selected depth (counted from root of Joomla site)
    2. CrawlerExt plugin - similar function as Crawler but using other walk algorithm
    3. Recache plugin - which crawls only through selected already cached pages which are stored in JotCache database (managed by JotCache component)
  4. JotCache component
  5. Cron script template which is necessary to be customized to each site individually. This script is used for cache garbage collection (removing of expired cached items from the server file system).
  6. Cron recache script template (which can be coded for same tasks as performed by plugins in the group of jotcacheplugins (see #3)
  7. JotEasyCron as standalone solution for administrators which cannot use standard cron jobs on provider servers. JotEasyCron can be set to regulary perform tasks as standard cron scripts (see #5 / #6).

1016 hits
Which are major JotCache functions ?


Function groups implemented in JotCache can be described in following way :

  1. main operation mode :
    1. which cache storage have to be used - e.g. file system, memcached, redis
    2. where to perform caching - selection of server cache (most used mode) or browser caching (very special case)
    3. one site / multisite operation
    4. one cache lifetime (expiration time) or many different lifetime settings for chosen groups of pages
    5. global rule for page URL processing - include or exclude chosen URLs from page caching
  2. exclusions from caching :
    1. of entire page based on page URL
    2. of chosen template positions for modules which have to be excluded
    3. based on visitor access (bots, crawlers, user browser agent)
  3. cache split - using different spaces in cache storage based on :
    1. user browser agent
    2. page cookies
    3. session variables
  4. recache of site pages - manually in JotCache component or automatically using server cron job
  5. cache clean - removing expired cached pages from cache storage to keep memory space in reasonable size
  6. setup tools - different debugging , logging and marking functions to support administrator setup

1010 hits
What are basic principles of JotCache operation which is needed to take in care ?


At first here it is necessary to have good knowledge about Joomla system caching – good overview gives this article (old but still valid). JotCache is built on top of Joomla system caching (global caching have to be set on, system (Page) Cache plugin have to be set off – details in JotCache Help).

JotCache is page cache type (fastest for entire page content delivery). Caching is done in the following manner :

  1. in the cache storage are cached pages with all page modules (when they are not excluded in JotCache Component)
  2. passive modules (without any user input) which have output internally modified (e.g. different counters as "Active users") can be taken out of caching processing by means Exclude Location form of JotCache component (JotMarker plugin have to be enabled)
  3. active modules with user input are during active submit not taken from the page cache but they are direct processed. The same processing (without any caching) applies to all Ajax calls. Some active modules with more steps processing (e.g. Polls) can be excluded from page caching by means of Exclude Location form of JotCache component.
    Modules which are inserted by means of any Joomla plugins into page content is not possible to exclude from caching (it is necessary to exclude entire page)
  4. page caching IS NOT ACTIVE for registred users, excluded components/views/selected pages
We have 18 guests and no members online
Copyright © 2015 JotComponents
We have 18 guests and no members online
Copyright © 2022 JotComponents