X7ROOT File Manager
Current Path:
/usr/src/litespeed-wp-plugin/6.5.0.2/litespeed-cache/thirdparty
usr
/
src
/
litespeed-wp-plugin
/
6.5.0.2
/
litespeed-cache
/
thirdparty
/
??
..
??
aelia-currencyswitcher.cls.php
(1.79 KB)
??
amp.cls.php
(1.88 KB)
??
autoptimize.cls.php
(730 B)
??
avada.cls.php
(647 B)
??
bbpress.cls.php
(2.32 KB)
??
beaver-builder.cls.php
(933 B)
??
caldera-forms.cls.php
(403 B)
??
divi-theme-builder.cls.php
(2.2 KB)
??
elementor.cls.php
(1.34 KB)
??
entry.inc.php
(1.46 KB)
??
facetwp.cls.php
(685 B)
??
gravity-forms.cls.php
(525 B)
??
litespeed-check.cls.php
(4.64 KB)
??
nextgengallery.cls.php
(6.15 KB)
??
perfmatters.cls.php
(659 B)
??
theme-my-login.cls.php
(875 B)
??
user-switching.cls.php
(514 B)
??
wc-pdf-product-vouchers.cls.php
(645 B)
??
wcml.cls.php
(932 B)
??
woo-paypal.cls.php
(594 B)
??
woocommerce.cls.php
(23.87 KB)
??
woocommerce.content.tpl.php
(3.45 KB)
??
woocommerce.tab.tpl.php
(184 B)
??
wp-polls.cls.php
(480 B)
??
wp-postratings.cls.php
(606 B)
??
wpdiscuz.cls.php
(793 B)
??
wplister.cls.php
(689 B)
??
wpml.cls.php
(627 B)
??
wptouch.cls.php
(704 B)
??
yith-wishlist.cls.php
(4.32 KB)
Editing: aelia-currencyswitcher.cls.php
<?php /** * The Third Party integration with the Aelia CurrencySwitcher plugin. * * @since 1.0.13 * @since 2.6 Removed hook_vary as OLS supports vary header already * @package LiteSpeed_Cache * @subpackage LiteSpeed_Cache/thirdparty * @author LiteSpeed Technologies <info@litespeedtech.com> */ namespace LiteSpeed\Thirdparty; defined('WPINC') || exit(); use LiteSpeed\API; class Aelia_CurrencySwitcher { private static $_cookies = array('aelia_cs_selected_currency', 'aelia_customer_country', 'aelia_customer_state', 'aelia_tax_exempt'); /** * Detects if WooCommerce is installed. * * @since 1.0.13 * @access public */ public static function detect() { if (defined('WOOCOMMERCE_VERSION') && isset($GLOBALS['woocommerce-aelia-currencyswitcher']) && is_object($GLOBALS['woocommerce-aelia-currencyswitcher'])) { // Not all pages need to add vary, so need to use this API to set conditions self::$_cookies = apply_filters('litespeed_3rd_aelia_cookies', self::$_cookies); add_filter('litespeed_vary_curr_cookies', __CLASS__ . '::check_cookies'); // this is for vary response headers, only add when needed add_filter('litespeed_vary_cookies', __CLASS__ . '::register_cookies'); // this is for rewrite rules, so always add } } public static function register_cookies($list) { return array_merge($list, self::$_cookies); } /** * If the page is not a woocommerce page, ignore the logic. * Else check cookies. If cookies are set, set the vary headers, else do not cache the page. * * @since 1.0.13 * @access public */ public static function check_cookies($list) { // NOTE: is_cart and is_checkout should also be checked, but will be checked by woocommerce anyway. if (!is_woocommerce()) { return $list; } return array_merge($list, self::$_cookies); } }
Upload File
Create Folder