Files
2025-06-24 14:14:35 +02:00

52 lines
1.5 KiB
PHP

<?php
class Context extends ContextCore
{
/*
* module: teamwant_redis
* date: 2023-03-29 22:51:19
* version: 2.1.1
*/
public $disableCacheForOrderPage_initialized = false;
/*
* module: teamwant_redis
* date: 2023-03-29 22:51:19
* version: 2.1.1
*/
public $disableCacheForOrderPage = false;
/*
* module: teamwant_redis
* date: 2023-03-29 22:51:19
* version: 2.1.1
*/
public $disableCacheForAddressPaymentAndCarrier_initialized = false;
/*
* module: teamwant_redis
* date: 2023-03-29 22:51:19
* version: 2.1.1
*/
public $disableCacheForAddressPaymentAndCarrier = false;
/*
* module: pagecache
* date: 2024-03-10 16:57:05
* version: 8.8.59
*/
public function getMobileDetect()
{
if ($this->mobile_detect === null) {
if (!Module::isEnabled('pagecache') || !file_exists(_PS_MODULE_DIR_ . 'pagecache/pagecache.php')) {
return parent::getMobileDetect();
} else {
require_once _PS_MODULE_DIR_ . 'pagecache/pagecache.php';
if ($this->mobile_detect === null) {
if (PageCache::isCacheWarmer()) {
$this->mobile_detect = new JprestaUtilsMobileDetect();
} else {
return parent::getMobileDetect();
}
}
}
}
return $this->mobile_detect;
}
}