Function __global->can_static_cache_request

Definitions

sources/static_cache.php

  • Find if we can use the static cache for the web request.For the save side, some additional checks are done in save_static_caching.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$consider_failover_mode boolean No No False N/A N/A Whether to consider potential of cache being needed for failover mode

Returns

  • Whether we can
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if we can use the static cache for the web request.For the save side, some additional checks are done in save_static_caching.
 *
 * @param  boolean $consider_failover_mode Whether to consider potential of cache being needed for failover mode
 * @return boolean Whether we can
 */

function can_static_cache_request(bool $consider_failover_mode = false) : bool