Astra_Cache::__construct( String $cache_dir )
Constructor
Description
Parameters
- $cache_dir
- 
					(String) (Required) Base cache directory in the uploads directory. 
Source
File: classes/cache/class-astra-cache.php
	public function __construct( $cache_dir ) {
		$this->cache_dir = $cache_dir;
		$this->asset_priority = 2;
		parent::__construct( $cache_dir );
		// Triggers on click on refresh/ recheck button.
		add_action( 'wp_ajax_astra_refresh_assets_files', array( $this, 'addon_refresh_assets' ) );
		add_action( 'save_post', array( $this, 'astra_refresh_assets' ) );
		add_action( 'post_updated', array( $this, 'astra_refresh_assets' ) );
		add_action( 'customize_save', array( $this, 'astra_refresh_assets' ) );
	}
			Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description | 
|---|---|
| 2.1.0 | Introduced. |