Function __global->web_client_may_use_static_cache
Definitions
sources/global2.php
- Find if the current web client can use the static cache.This doesn't do checks to see if the whole web request is cachable (see can_static_cache_request), just the web client.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$early_boot_check | boolean | False | N/A | N/A | Whether this is an check before the user subsystem is initiated (stricter conditions, but good to detect early) |
$mode | ?integer | Null | N/A | N/A | A STATIC_CACHE__* constant (null: not yet set) |
$reason | ?string | Null | N/A | N/A | Reason for a false result (null: not yet set) |
$consider_failover_mode | boolean | False | N/A | N/A | Whether to consider potential of cache being needed for failover mode |
Return
- Whether the web client can use static caching
- Type: boolean
- Set: N/A
- Range: N/A