修复日志页面卡顿我呢提
This commit is contained in:
@@ -12,6 +12,16 @@ $tests['normalize_strips_www'] = DomainRepository::normalizeHostname('www.Shop.E
|
||||
$tests['host_to_key'] = DomainRepository::hostToConfigKey('shop.example.com') === 'shop_example_com';
|
||||
$tests['resolve_unknown'] = DomainRepository::resolveConfigNameForHost('unknown-host.test', $root) === 'index';
|
||||
|
||||
$key = 'reg_script_' . substr(md5((string) microtime(true)), 0, 6);
|
||||
$cfgFile = $root . '/check_config/' . $key . '_config.php';
|
||||
file_put_contents($cfgFile, "<?php define('SHOW_SITE_MODE_SWITCH','ip_check');\n");
|
||||
$loadedScript = ConfigLoader::loadForRequest($key, 'unknown-host-no-mapping.test');
|
||||
$tests['script_priority_over_host'] = ($loadedScript === $key);
|
||||
@unlink($cfgFile);
|
||||
|
||||
$loadedIndex = ConfigLoader::loadForRequest('index', 'unknown-host-no-mapping.test');
|
||||
$tests['index_uses_host_fallback'] = ($loadedIndex === 'index');
|
||||
|
||||
$key = 'reg_test_' . substr(md5((string) time()), 0, 6);
|
||||
$cfgFile = $root . '/check_config/' . $key . '_config.php';
|
||||
file_put_contents($cfgFile, "<?php define('SHOW_SITE_MODE_SWITCH','ip_check');\n");
|
||||
|
||||
Reference in New Issue
Block a user