Compile and match app.json cache.no_cache_regex lists;
cache app web/box realpaths for jail checks.
Engine-internal — refreshed on app register / reload.
- Description:
- Compile and match app.json cache.no_cache_regex lists; cache app web/box realpaths for jail checks. Engine-internal — refreshed on app register / reload.
Methods
(inner) attachAppPathReals(app)
- Description:
- Cache realpath-expanded app web/box roots (refresh on reload). Candidates are still realpath-expanded on each jail check (H12).
Parameters:
| Name | Type | Description |
|---|---|---|
app |
object |
(inner) attachCompiledCacheRegex(app) → {object}
- Description:
- Normalize cache config nested objects and attach compiled regex lists on the app. Also refreshes app web/box realpath caches. Call after loading/reloading app.json.
Parameters:
| Name | Type | Description |
|---|---|---|
app |
object | live app registry entry (`app.config.cache`) |
Returns:
app.compiledCacheRegex
- Type
- object
(inner) compileNoCacheRegex(patterns) → {Array.<RegExp>}
- Description:
- Compile string patterns to RegExp[]. Invalid patterns are skipped.
Parameters:
| Name | Type | Description |
|---|---|---|
patterns |
Array.<string> | undefined | null |
Returns:
- Type
- Array.<RegExp>
(inner) matchesNoCache(compiled, url) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
compiled |
Array.<RegExp> | undefined | null | |
url |
string |
Returns:
- Type
- boolean
(inner) resolveCompiledCacheRegex(app, cacheConfig) → {Object}
- Description:
- Prefer app.compiledCacheRegex; fall back to compiling from cacheConfig (tests / edge).
Parameters:
| Name | Type | Description |
|---|---|---|
app |
object | |
cacheConfig |
object | app.config.cache shape |
Returns:
- Type
- Object