Automattic\WooCommerce\Internal\Caches

ProductTransientsDeferrer::handle_shutdownpublicWC 1.0

Handle the shutdown hook.

Flushes pending deletions if deferral was not explicitly stopped.

Method of the class: ProductTransientsDeferrer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductTransientsDeferrer = new ProductTransientsDeferrer();
$ProductTransientsDeferrer->handle_shutdown(): void;

ProductTransientsDeferrer::handle_shutdown() code WC 11.0.0

public function handle_shutdown(): void {
	$this->deferral_level = 0;
	$this->flush();
}