| Server IP : 68.178.247.200 / Your IP : 216.73.217.50 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/www/wp-content/plugins/wp-fastest-cache-premium/pro/library/ |
Upload File : |
<?php
class WpFastestCacheStatics{
private $extension = false;
private $size = false;
public function __construct($extension = false, $size = false){
$this->extension = $extension;
$this->size = $size;
}
public function update_db(){
$option_name = "WpFastestCache".strtoupper($this->extension);
$option_name_for_size = $option_name."SIZE";
if($current = get_option($option_name)){
$current = $current + 1;
update_option($option_name, $current);
}else{
add_option($option_name, 1, null, "yes");
}
if($current_size = get_option($option_name_for_size)){
$current_size = $current_size + $this->size;
update_option($option_name_for_size, $current_size);
}else{
add_option($option_name_for_size, $this->size, null, "yes");
}
}
public function statics(){
include_once(WPFC_WP_PLUGIN_DIR."/wp-fastest-cache-premium/pro/templates/cache-statics.html");
}
public function get(){
$arr = array("desktop" => array("size" => get_option("WpFastestCacheHTMLSIZE")/1000, "file" => get_option("WpFastestCacheHTML")),
"mobile" => array("size" => get_option("WpFastestCacheMOBILESIZE")/1000, "file" => get_option("WpFastestCacheMOBILE")),
"js" => array("size" => get_option("WpFastestCacheJSSIZE")/1000, "file" => get_option("WpFastestCacheJS")),
"css" => array("size" => get_option("WpFastestCacheCSSSIZE")/1000, "file" => get_option("WpFastestCacheCSS"))
);
return $arr;
}
}
?>