Automattic\WooCommerce\Caching

ObjectCache::get_default_expiration_value()publicWC 1.0

Get the default expiration time for cached objects, in seconds.

Метод класса: ObjectCache{}

Хуков нет.

Возвращает

int.

Использование

$ObjectCache = new ObjectCache();
$ObjectCache->get_default_expiration_value(): int;

Код ObjectCache::get_default_expiration_value() WC 8.7.0

public function get_default_expiration_value(): int {
	return $this->default_expiration;
}