Astra_Cache_Base::refresh_assets( String $cache_dir )

Refresh Assets


Description


Parameters

$cache_dir

(String) (Required) dirname of the cache.


Return

(void)


Source

File: classes/cache/class-astra-cache-base.php

	public function refresh_assets( $cache_dir ) {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			return;
		}

		$this->init_cache();
		astra_addon_filesystem()->reset_filesystem_access_status();

		$this->delete_cache_files( $cache_dir );
	}

Changelog

Changelog
Version Description
2.1.0 Introduced.


User Contributed Notes

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