WC_Admin_Report::maybe_update_transients()

Function to update the modified transients at the end of the request.


Description Description


Source Source

File: includes/admin/reports/class-wc-admin-report.php

	public static function maybe_update_transients() {
		foreach ( self::$transients_to_update as $key => $transient_name ) {
			set_transient( $transient_name, self::$cached_results[ $transient_name ], DAY_IN_SECONDS );
		}
		// Transients have been updated reset the list.
		self::$transients_to_update = array();
	}

Top ↑

User Contributed Notes User Contributed Notes

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