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' );
}

Changelog

Changelog
Version Description
3.5.9 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.