PHP 8.2.30
Preview: show_rule_conflict.php Size: 935 B
/usr/src/litespeed-wp-plugin/7.6.2/litespeed-cache/tpl/inc/show_rule_conflict.php

<?php
/**
 * LiteSpeed Cache Unexpected Cache Rule Notice
 *
 * Displays a warning notice about conflicting cache rules in .htaccess that may cause stale content.
 *
 * @package LiteSpeed
 * @since 1.0.0
 */

namespace LiteSpeed;

defined('WPINC') || exit();

$err = sprintf(
	esc_html__(
		'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. (%3$sLearn More%4$s)',
		'litespeed-cache'
	),
	'.htaccess',
	'<code>ExpiresDefault</code>',
	'<a href="https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#browser-displays-stale-content" target="_blank">',
	'</a>'
);

// Other plugin left cache expired rules in .htaccess which will cause conflicts
echo wp_kses_post( self::build_notice(self::NOTICE_YELLOW . ' lscwp-notice-ruleconflict', $err) );

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
1.75 KB lrw-r--r-- 2025-10-17 18:55:12
Edit Download
2.00 KB lrw-r--r-- 2025-10-17 18:55:12
Edit Download
884 B lrw-r--r-- 2025-10-17 18:55:12
Edit Download
528 B lrw-r--r-- 2025-10-17 18:55:12
Edit Download
1.58 KB lrw-r--r-- 2025-10-17 18:55:12
Edit Download
5.79 KB lrw-r--r-- 2025-10-17 18:55:12
Edit Download
1.67 KB lrw-r--r-- 2025-10-17 18:55:12
Edit Download
921 B lrw-r--r-- 2025-10-17 18:55:12
Edit Download
935 B lrw-r--r-- 2025-10-17 18:55:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).