WebDyne
view release on metacpan or search on metacpan
man/WebDyne.3pm view on Meta::CPAN
Returns the mtime (modification time) of the cache file associated with the optionally supplied UID\&. If no UID supplied the current one will be used\&. Can be used to make cache compile decisions by WebDyne::Cache code (e\&.g if page > x minutes ol...
.RE
.PP
cache_compile( )
.RS 4
Force recompilation of cache file\&. Can be used in cache code to force recompilation of a page, even if it is flagged static\&. Returns current value if no parameters supplied, or sets if parameter supplied\&.
.RE
.PP
no_cache()
.RS 4
Send headers indicating that the page is not be cached by the browser or intermediate proxies\&. By default WebDyne pages automatically set the no\-cache headers, although this behaviour can be modified by clearing the
\fI$WEBDYNE_NO_CACHE\fR
variable and using this function
.RE
.PP
meta()
.RS 4
Return a hash ref containing the meta data for this page\&. Alterations to meta data are persistent for this process, and carry across Apache requests (although not across different Apache processes)
.RE
.SH "WEBDYNE GLOBAL CONSTANTS"
.PP
Constants can be set to modify the behaviour of the WebDyne module\&. Constants can be set in Apache (via the PerSerVar directive), in a system file (/etc/webdyne\&.pm in *nix, %WINDIR%/webdyne\&.pm in Windows) or via environment variables\&. See the...
.PP
\fI$WEBDYNE_CACHE_DN\fR
.RS 4
The name of the directory that will hold partially compiled WebDyne cache files\&. Must exist and be writable by the Apache process
.RE
.PP
\fI$WEBDYNE_STARTUP_CACHE_FLUSH_DN\fR
.RS 4
Remove all existing disk cache files at Apache startup\&. 1=yes (default), 0=no\&. By default all disk cache files are removed at startup, and thus pages must be recompiled again the first time they are viewed\&. If you set this to 0 (no) then disk c...
.RE
.PP
\fI$WEBDYNE_CACHE_CHECK_FREQ\fR
.RS 4
Check the memory cache after this many request (per\-process counter)\&. default=256\&. After this many requests a housekeeping function will check compiled pages that are stored in memory and remove old ones according to the criteria below\&.
.RE
.PP
\fI$WEBDYNE_CACHE_HIGH_WATER\fR
.RS 4
Remove compiled from pages from memory when we have more than this many\&. default=64
.RE
.PP
\fI$WEBDYNE_CACHE_LOW_WATER\fR
.RS 4
After reaching HIGH_WATER delete until we get down to this amount\&. default=32
.RE
.PP
\fI$WEBDYNE_CACHE_CLEAN_METHOD\fR
.RS 4
Clean algorithm\&. default=1, means least used cleaned first, 0 means oldest last view cleaned first
.RE
.PP
\fI$WEBDYNE_EVAL_SAFE\fR
.RS 4
default=0 (no), If set to 1 means eval in a Safe\&.pm container\&.
.RE
.PP
\fI$WEBDYNE_EVAL_SAFE_OPCODE_AR\fR
.RS 4
The opcode set to use in Safe\&.pm evals (see the Safe man page)\&. Defaults to "[:default]"\&. Use [&Opcode::full_opset()] for the full opset\&. CAUTION Use of WebDyne with Safe\&.pm not comprehensively tested\&.
.RE
.PP
\fI$WEBDYNE_EVAL_USE_STRICT\fR
.RS 4
The string to use before each eval\&. Defaults to "use strict qw(vars);"\&. Set to undef if you do not want strict\&.pm\&. In Safe mode this becomes a flag only \- set undef for "no strict", and non\-undef for "use strict" equivalence in a Safe mode ...
.RE
.PP
\fI$WEBDYNE_STRICT_VARS\fR
.RS 4
Check if a var is declared in a render block (e\&.g $ {foo}) but not supplied as a render parameter\&. If so will throw an error\&. Set to 0 to ignore\&. default=1
.RE
.PP
\fI$WEBDYNE_DUMP_FLAG\fR
.RS 4
If 1, any instance of the special <dump> tag will print out results from CGI\->dump()\&. Use when debugging forms\&. default=0
.RE
.PP
\fI$WEBDYNE_DTD\fR
.RS 4
The DTD to place at the top of a rendered page\&. Defaults to: <!DOCTYPE html PUBLIC "\-//W3C//DTD HTML 4\&.01 Transitional//EN" "http://www\&.w3\&.org/TR/html4/loose\&.dtd">
.RE
.PP
\fI$WEBDYNE_HTML_PARAM\fR
.RS 4
Default attributes for the <html> tag, e\&.g\&. { lang =>"en\-US" }\&. undef by default
.RE
.PP
\fI$WEBDYNE_COMPILE_IGNORE_WHITESPACE\fR
.RS 4
Ignore source file whitespace as per HTML::TreeBuilder ignore_ignorable_whitespace function\&. Defaults to 1
.RE
.PP
\fI$WEBDYNE_COMPILE_NO_SPACE_COMPACTING\fR
.RS 4
Do not compact source file whitespace as per HTML::TreeBuilder no_space_compacting function\&. Defaults to 0
.RE
.PP
\fI$WEBDYNE_STORE_COMMENTS\fR
.RS 4
By default comments are not rendered\&. Set to 1 to store and display comments from source files\&. Defaults to 0
.RE
.PP
\fI$WEBDYNE_NO_CACHE\fR\&.
.RS 4
WebDyne should send no\-cache HTTP headers\&. Set to 0 to not send such headers\&. Defaults to 1
.RE
.PP
\fI$WEBDYNE_DELAYED_BLOCK_RENDER\fR
.RS 4
By default WebDyne will render blocks targeted by a render_block() call, even those that are outside the originating <perl>\&.\&.</perl> section that made the call\&. Set to 0 to not render such blocks\&. Defaults to 1
.RE
.PP
\fI$WEBDYNE_WARNINGS_FATAL\fR
.RS 4
If a programs issues a warning via warn() this constant determines if it will be treated as a fatal error\&. Default is 0 (warnings not fatal)\&. Set to 1 if you want any warn() to behave as if die() had been called\&.\&.
.RE
.PP
\fI$WEBDYNE_CGI_DISABLE_UPLOADS\fR
.RS 4
Disable CGI\&.pm file uploads\&. Defaults to 1 (true \- do not allow uploads)\&.
( run in 0.430 second using v1.01-cache-2.11-cpan-71847e10f99 )