Fragment.pm
NAME
Communiware::DE::Fragment - Dynamic element Fragment
SYNOPSIS
<:Fragment cache_key=myfrag cache_time=60m:> ... <:EndFragment:>
DESCRIPTION
Evaluates fragment of template and stores result to cache with given key for given time.
ARGUMENTS
- cache_key
- Some value to address result of evaluated fragment in cache.
- cache_time
- Expiration time of value in cache. If value is less than 60*60*24*30 (30 days), time is assumed to be relative from the present. If larger, it's considered an absolute Unix time. Empty value means 'never expire'.
-
Time must be in seconds or in abbreviated form. The following postfixes can be specified: - s seconds; - m minutes; - h hours; - d days; - w weeks; - M months; - y years.
-
For example: - 1d1h - one day and one hour; - 2w - two weeks.
-
If cache_time argument is absent defaults to value of global paramenter DEFAULT_FRAGMENTS_EXPIRATION.
16 октябрь 2007 13:44