-
Notifications
You must be signed in to change notification settings - Fork 20
{exp:stash:static}
Cache an entire page to a static file. Note that you cannot escape certain parts of your template to remain dynamic when using the static cache.
Simply place this tag anywhere in your template.
{exp:stash:static}
The name of your cached variable (optional).
Define a context for your cached variable (optional). This is essentially a prefix for the name. Use to 'tag' your variables, in order to use as a target for cache-breaking.
The number of minutes to store the cache (optional, default is 0 - never). Note that this will only work reliably when using Mustash and a CRON job for cache-pruning.
Only cache when the user is logged in.
Only cache when the user is logged out.
Enable or disable caching (default="yes").
Getting started
Using Stash
Using Mustash
- Mustash
- Installing Mustash
- Managing variables
- Managing bundles
- Cache-breaking rules
- Mustash plugins
- Mustash Varnish plugin
- Mustash plugin development
- Mustash API
Template design patterns
Tag reference
- {exp:stash:set}
- {exp:stash:get}
- {exp:stash:block}
- {exp:stash:set_value}
- {exp:stash:append}
- {exp:stash:append_value}
- {exp:stash:prepend}
- {exp:stash:prepend_value}
- {exp:stash:copy}
- {exp:stash:context}
- {exp:stash:is_empty}
- {exp:stash:not_empty}
- {exp:stash:set_list}
- {exp:stash:get_list}
- {exp:stash:append_list}
- {exp:stash:prepend_list}
- {exp:stash:split_list}
- {exp:stash:join_lists}
- {exp:stash:list_count}
- {exp:stash:unset}
- {exp:stash:flush_cache}
- {exp:stash:bundle}
- {stash:embed}
- {exp:stash:extend}
- {exp:stash:parse}
- {exp:stash:cache}
- {exp:stash:static}
- {exp:stash:finish}
- {exp:stash:not_found}
- Short tag syntax
- Using Stash methods in your own add-ons