astra_addon_clear_cache_assets()
Regenerate Theme and Addon cache files.
Description
Return
(void)
Source
File: classes/helper-functions.php
function astra_addon_clear_cache_assets() {
// Clear Addon static CSS asset cache.
Astra_Minify::refresh_assets();
// This will clear addon dynamic CSS cache file which is generated using File generation option.
$astra_cache_base_instance = new Astra_Cache_Base( 'astra-addon' );
$astra_cache_base_instance->refresh_assets( 'astra-addon' );
// Clear Theme assets cache.
$astra_cache_base_instance = new Astra_Cache_Base( 'astra' );
$astra_cache_base_instance->refresh_assets( 'astra' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.5.9 | Introduced. |