Examples of FlexCache directive usage
Here are some simple examples for cache
property settings.
Note that even though you can combine all FlexCache directives, not all combinations always make sense.
cache
property set totimeout=15;
- The cached element would be invalidated at x.00, x.15, x.30 and x.45 of every hour.
cache
property set tono-params=(action, submit);
- If one of the parameters "action" or "submit" is sent along with the request, the cache entry will be ignored (i.e. the resource will be generated dynamically).
cache
property set touri;timeout=720;
- For every top - level URI requested there will be a variation entry saved in the cache. The timeout interval will invalidate the elements every 720 minutes, i.e. at 0.00h and at 12.00h every day.