<%init>
my $_cs_deps = [
'file|/path/to/some_configuration_file',
"_XML::Comma|Doc|$doc_key",
"_XML::Comma|Store|$def|$store",
#time dependencies (WARNING: these are discouraged, see doc/time-deps-note)
'time|15s', #every 15 seconds
'time|M:15s', #every 15 seconds after the minute
'time|H:2m', #every 2 minutes past the hour
'time|W:2d3h5m0s', #every Tuesday at 3:05 AM
#modifiers (indicate behavior when the file cannot be found)
'file-0|/tmp/foo', #if ! -e /tmp/foo, regenerate
'file-1|/tmp/foo', #if ! -e /tmp/foo, serve
'file|/tmp/foo', #use the config value "dep_file_not_found_returns"
#note modifiers also work on extensions, e.g.
'_DBI-1|db|mysql:scache_test_db',
'_XML::Comma-0|Store|mm_item|post',
#etc... but modifiers CANNOT be used with times (since they have no
#file backing on disk)
];
exit if Cache::Static::HTML_Mason_Util::cache_it(
$r, $m, 1, $_cs_deps);
#...
#rest of init block
#...
</%init>