<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

FlexCache Request Parameters Reference

OpenCms logo - Forward >>

FlexCache Request Parameter Reference

Additionally to the Administration page the FlexCache can be controlled by using request parameters. This has the advantage that you do not need to open the Administration page first. The request parameters are intended to be a convenience feature for page developers. For example, if you want to see how a page looks like if nothing is drawn from the cache, just append a parameter _flex=nocache to your query string.

Note: You must have Administrator permissions or you can not use the FlexCache request parameters.

The options for the request parameters are identical to those available on the Administration page. They are described in detail in the table below:

_flex=nocache If you append this to any URL, the requested page and all it's sub-elements are not drawn from the cache. If a cache entry for the page exists it is kept but not used.
_flex=clearcache This clears the complete cache, i.e. removes all keys and entries. In case you append this to a request the cache is cleared before the requested resource is called.
_flex=clearvariations This clears all variation entries of the cache but keeps the keys.
_flex=online If you append this to either _flex=clearcache or _flex=clearvariations, the selected action will affect the online part of the cache only. Example: _flex=clearcache&_flex=online will remove all cached keys and entries of the online project.
_flex=offline If you append this to either _flex=clearcache or _flex=clearvariations, the selected action will affect the offline part of the cache only. Example: _flex=clearcache&_flex=offline will remove all cached key and entries of the offline projects.
_flex=recompile If you append this to any URL, the requested JSP page and all it's sub-elements are re-compiled. Any existing cache entries for this page are cleared and replaced by their new entries. 
_flex=purge If you append this to any URL, all JSP pages, their sub-elements and cache entries are cleared. Any JSP page or element is then re-compiled first when it is requested the next time.

©2005 Alkacon Software GmbH (http://www.alkacon.com) - The OpenCms experts