LLMS_Cache_Helper::maybe_no_cache()

Define nocache constants and set nocache headers on specified pages Checkout & Student Dashboard


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.cache.helper.php

	public function maybe_no_cache() {

		if ( ! is_blog_installed() ) {
			return;
		}

		$ids = apply_filters( 'llms_no_cache_page_ids', array(
			llms_get_page_id( 'checkout' ),
			llms_get_page_id( 'myaccount' ),
		) );

		if ( is_page( $ids ) ) {

			llms_maybe_define_constant( 'DONOTCACHEPAGE', true );
			llms_maybe_define_constant( 'DONOTCACHEOBJECT', true );
			llms_maybe_define_constant( 'DONOTCACHEDB', true );
			nocache_headers();

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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