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 );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |