WC_Cache_Helper::delete_transients_on_shutdown()

Transients that don’t need to be cleaned right away can be deleted on shutdown to avoid repetition.


Description Description


Source Source

File: includes/class-wc-cache-helper.php

	public static function delete_transients_on_shutdown() {
		if ( self::$delete_transients ) {
			foreach ( self::$delete_transients as $key ) {
				delete_transient( $key );
			}
			self::$delete_transients = array();
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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