Astra_Cache_Base::__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-base.php

	public function __construct( $cache_dir ) {
		if ( true === is_admin() ) {
			return false;
		}

		$this->cache_dir = $cache_dir;

		add_action( 'wp', array( $this, 'init_cache' ) );
		add_action( 'wp_enqueue_scripts', array( $this, 'setup_cache' ), $this->asset_priority );
	}

Changelog

Changelog
Version Description
2.1.0 Introduced.


User Contributed Notes

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