HEX
Server: LiteSpeed
System: Linux venus 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/axxoncom/domains/theluvbox.pk/public_html/wp-content/advanced-cache.php
<?php
# WP SUPER CACHE 1.2
# WP SUPER CACHE 0.8.9.1
# AL ADVANCED CACHE 1.0
$cache_fname = dirname( __FILE__ ) . "/plugins/airlift/buffer/cache.php";
$helper_fname = dirname( __FILE__ ) . '/plugins/airlift/helper.php';

if (file_exists($cache_fname) && file_exists($helper_fname)) {
	require_once $cache_fname;
	require_once $helper_fname;

	$GLOBALS['al_cache_skip_cookies'] = ["woocommerce_cart_hash", "woocommerce_items_in_cart"];

	function hasIgnoredCookies($ignored_cookies) {
		if (!is_array($_COOKIE)) {
			return true;
		}
		foreach (array_keys($_COOKIE) as $cookie_name) {
			foreach ($ignored_cookies as $ignored_cookie) {
				if (AlHelper::safePregMatch($ignored_cookie, $cookie_name)) {
					return true;
				}
			}
		}
		return false;
	}

	function hasIgnoredUserAgents($ignored_user_agents) {
		if (!$_SERVER['HTTP_USER_AGENT']) {
			return false;
		}
		foreach ($ignored_user_agents as $ignored_ua) {
			if(ALHelper::safePregMatch($ignored_ua, $_SERVER['HTTP_USER_AGENT'])) {
				return true;
			}
		}
		return false;
	}

	function isIgnoredRequestMethod($allowed_methods) {
		if (in_array($_SERVER['REQUEST_METHOD'], $allowed_methods)) {
			return false;
		}
		return true;
	}

	function canCachePage() {
		$ignored_cookies = array("/testa/", "/wp-postpass_/", "/wptouch_switch_toggle/", "/comment_author_/", "/comment_author_email_/", "/wordpress_logged_in_.+/");
		$ignored_user_agents = array("/facebookexternalhit/", "/woocommerce.com/", "/Jetpack/");
		$allowed_methods = array("GET", "HEAD");
		if (hasIgnoredCookies($ignored_cookies) || hasIgnoredUserAgents($ignored_user_agents) || isIgnoredRequestMethod($allowed_methods)) {
			return false;
		}
		return true;
	}

	if (canCachePage()) {
		$socache = new ALCache();
		$socache->startCaching();
	}
}