User Tools

Site Tools


Exclusion/inclusion of pages from page caching

Components, views, parts of uri excluded from caching

Based on JotCache plugin parameter URL Cache Selection we can control mode of cache processing - if pages defined in URL caching rules have to be included or excluded from caching :

This selection covers all definition stated in URL caching rules.


URL caching rules are following :

  • to include/exclude all pages of one component set checkbox on left side of Component Name with empty Views & Query Parameters input field
  • to include/exclude pages of component view set checkbox on left side of Component Name with name of component view in Views & Query Parameters input field. More views names are separated with comma in input field.
  • to include/exclude specific pages of component set checkbox on left side of Component Name with string consisting from mix of views and URL query snippets in Views & Query Parameters input field. More views names or URL query snippets are separated with comma in input field.

URL query snippet can consists from one key=value pair or more key=value pairs concatenated with logical AND operator expressed as character '&'.


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 checked and empty Views input line.

Excluding only specific views of the component you can do with checkbox Excluded checked and Views input line 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.

Here is also possibility to exclude selected pages based on parameters of URL query string. 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 as they are shown in mark 'Yes' link on JotCache management view (see previous paragraph). Parameter pairs are simply inserted into given component line in Exclude Views & Query Parameters input box :

Multiple parameters pairs are separated with , character and can be intermixed with component views as described in previous section. 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.

Example

Here are the full urls:

1) I want to 'exclude' ALL J2Store from cache. Here is an example url from j2store:

index.php?option=com_j2store&view=checkout&layout=checkout

Setting on JotCache: Exclude Components form

2) j2store uses Joomla articles/categories, so I want to 'exclude' the joomla category that shows j2store products/articles. Here is the category blog layout url:

index.php?option=com_content&view=category&id=101&lang=en&layout=blog&Itemid=794

3) j2store uses Joomla articles/categories, so I want to 'exclude' the joomla articles that are j2store products. Here is the url for one of the products (joomla articles):

index.php?option=com_content&view=article&catid=101&id=111&lang=en&Itemid=732

Both exclusions for #2 and #3 have same option value (com_content). The common setting on JotCache: Exclude Components form