WebDyne

 view release on metacpan or  search on metacpan

lib/WebDyne/Constant.pm.md  view on Meta::CPAN

* **WEBDYNE_STARTUP_CACHE_FLUSH**

    **Default:** `1`

    Remove existing disk cache files at startup so PSP files are recompiled after restart and then cached again when first viewed. Set to 0 to keep disk cache files across restarts.

* **WEBDYNE_CACHE_CHECK_FREQ**

    **Default:** `256`

    Per-process request interval used to trigger memory cache housekeeping.

* **WEBDYNE_CACHE_HIGH_WATER**

    **Default:** `64`

    Maximum number of compiled pages to keep in memory before cache housekeeping removes entries.

* **WEBDYNE_CACHE_LOW_WATER**

    **Default:** `32`

    Target number of compiled pages to retain after memory cache housekeeping runs.

* **WEBDYNE_CACHE_CLEAN_METHOD**

    **Default:** `1`

    Memory cache cleanup method. `0` removes entries by oldest last-use time; `1` removes least-used entries first.

* **WEBDYNE_CACHE_STAT_TTL**

    **Default:** `0`

    Controls how often WebDyne rechecks disk cache file mtimes after a compiled page has been loaded into the current process.

    `0` preserves the historical behavior and stats cache files on every request. A positive value reuses the last stat result for that many seconds. `-1` reuses the last stat result for the lifetime of the current process, so externally updated cach...

* **WEBDYNE_EVAL_SAFE**

    **Default:** `0`

    Run dynamic PSP code in a `Safe` compartment instead of direct Perl eval. Safe mode is experimental and not recommended as a security boundary.

* **WEBDYNE_EVAL_USE_STRICT**

    **Default:** `'use strict qw(vars)'`

    Perl source prepended before generated eval code to enable strict variable checking. Set to `undef` to disable this strict pragma. In Safe mode this behaves as a strict on/off flag rather than arbitrary source text.

* **WEBDYNE_EVAL_PREPEND**

    **Default:** `''`

    Perl source text prepended to generated eval code after `WEBDYNE_EVAL_USE_STRICT`. Use conservatively because it affects interpreted PSP code globally.

* **WEBDYNE_EVAL_SAFE_OPCODE_AR**

    **Default:** array reference containing `:default`

    Opcode set allowed when `WEBDYNE_EVAL_SAFE` is enabled. Ignored when direct eval mode is used. Use `Opcode::full_opset()` for the full opcode set if Safe mode is enabled and you explicitly want to allow all Perl opcodes.

* **WEBDYNE_STRICT_VARS**

    **Default:** `1`

    Check render variables referenced as `${name}` and raise an error when a referenced variable was not supplied to `render()` or `render_block()`, or was supplied as `undef`.

* **WEBDYNE_AUTOLOAD_POLLUTE**

    **Default:** `0`

    Cache dynamically found method references in the `WebDyne` namespace to avoid repeated `AUTOLOAD` lookup. This can improve some workloads but risks method-name clashes, so it should only be used in controlled environments.

* **WEBDYNE_DUMP_FLAG**

    **Default:** `0`

    Enable output from the special `<dump>` tag, mainly for form and request debugging.

* **WEBDYNE_HTML_CHARSET**

    **Default:** `'UTF-8'`

    Default character set used for generated content types and default HTML metadata.

* **WEBDYNE_CONTENT_TYPE_HTML**

    **Default:** `'text/html'`

    Base content type for HTML responses.

* **WEBDYNE_CONTENT_TYPE_HTML_ENCODED**

    **Default:** `'text/html; charset=UTF-8'`

    Encoded HTML content type including the configured character set.

* **WEBDYNE_CONTENT_TYPE_TEXT**

    **Default:** `'text/plain'`

    Base content type for plain text responses.

* **WEBDYNE_CONTENT_TYPE_TEXT_ENCODED**

    **Default:** `'text/plain; charset=UTF-8'`

    Encoded plain text content type including the configured character set.

* **WEBDYNE_CONTENT_TYPE_JSON**

    **Default:** `'application/json'`

    Base content type for JSON responses.

* **WEBDYNE_CONTENT_TYPE_JSON_ENCODED**

    **Default:** `'application/json; charset=UTF-8'`

    Encoded JSON content type including the configured character set.



( run in 2.523 seconds using v1.01-cache-2.11-cpan-14f38c9f855 )