Function __global->erase_block_cache
Definitions
sources/caches3.php
- Erase the block cache.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $erase_cache_signatures_too | boolean | No | No | False | N/A | N/A | Erase cache signatures too |
| $theme | ?ID_TEXT | No | No | Null | N/A | N/A | Only erase caching for this theme (null: all themes) |
| $persistent_caching_too | boolean | No | No | True | N/A | N/A | Erase persistent caching too (recommended in most cases) |
Preview
Code (PHP)
/**
* Erase the block cache.
*
* @param boolean $erase_cache_signatures_too Erase cache signatures too
* @param ?ID_TEXT $theme Only erase caching for this theme (null: all themes)
* @param boolean $persistent_caching_too Erase persistent caching too (recommended in most cases)
*/
function erase_block_cache(bool $erase_cache_signatures_too = false, ?string $theme = null, bool $persistent_caching_too = true)
* Erase the block cache.
*
* @param boolean $erase_cache_signatures_too Erase cache signatures too
* @param ?ID_TEXT $theme Only erase caching for this theme (null: all themes)
* @param boolean $persistent_caching_too Erase persistent caching too (recommended in most cases)
*/
function erase_block_cache(bool $erase_cache_signatures_too = false, ?string $theme = null, bool $persistent_caching_too = true)

