Astra_Cache_Base::ajax_refresh_assets( String $cache_dir )

Refresh Assets, called through ajax


Description


Parameters

$cache_dir

(String) (Required) dirname of the cache.


Return

(void)


Source

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

	public function ajax_refresh_assets( $cache_dir ) {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_die();
		}

		check_ajax_referer( 'astra-addon-module-nonce', 'nonce' );

		$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.