17 lines
687 B
PHP
17 lines
687 B
PHP
<?php
|
|
namespace LiteSpeed;
|
|
defined('WPINC') || exit();
|
|
|
|
$err = sprintf(
|
|
__(
|
|
'Unexpected cache rule %2$s found in %1$s file. This rule may cause visitors to see old versions of pages due to the browser caching HTML pages. If you are sure that HTML pages are not being browser cached, this message can be dismissed. (<a %3$s>Learn More</a>)',
|
|
'litespeed-cache'
|
|
),
|
|
'.htaccess',
|
|
'`ExpiresDefault`',
|
|
'href="https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#browser-displays-stale-content" target="_blank"'
|
|
);
|
|
|
|
// other plugin left cache expired rules in .htaccess which will cause conflicts
|
|
echo self::build_notice(self::NOTICE_YELLOW . ' lscwp-notice-ruleconflict', $err);
|