Automattic\WooCommerce\Internal\Caches
ProductTransientsDeferrer::handle_shutdown
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() ProductTransientsDeferrer::handle shutdown code WC 11.0.0
public function handle_shutdown(): void {
$this->deferral_level = 0;
$this->flush();
}