From 1f9d97cd1e3ca76c28928aa4725cdd06520e6c86 Mon Sep 17 00:00:00 2001 From: Syed Zabiuddin <32957211+Zabi09@users.noreply.github.com> Date: Mon, 27 Apr 2020 12:35:51 +0530 Subject: [PATCH] #4382 properly added for Litespeed cache --- includes/features/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/features/functions.php b/includes/features/functions.php index dcdb56cf9..b06f89c35 100644 --- a/includes/features/functions.php +++ b/includes/features/functions.php @@ -1347,7 +1347,8 @@ function ampforwp_mobile_redirection_notice(){ return; } } - if(function_exists('litespeed_purge_single_post') && 'mobileview_enabled' != LiteSpeed_Cache_Config::OPID_CACHE_MOBILE) { $plugin = 'LiteSpeed Cache'; + if(function_exists('litespeed_purge_single_post') && !LiteSpeed_Cache_Admin_Rules::get_instance()->get_rewrite_rule_mobile_agents()) { + $plugin = 'LiteSpeed Cache'; $option = 'Cache Mobile'; } if(function_exists('wpfastestcache_activate') && 'on' != $GLOBALS["wp_fastest_cache_options"]->wpFastestCacheMobile) {