"files", "path" => "/home/compress/", //path for cache files "htaccess" => true, //set htaccess protection (default: true) "fallback" => array( "memcache" => "files", //if memcached isn't installed use file system instead "apc" => "files", //if apc isn't installed use file system instead ), ); $logs = new Logging(); $minObj = new Minify(); $func = new Functions(); $config = new Config(); $design = new Template(); $conn = new Connection(); $html = new HTML(); //$detect = new Mobile_Detect(); //$deviceTypeMobile = $detect->isMobile(); //$deviceTypeTablet = $detect->isTablet(); //use phpFastCache\CacheManager; //$cache = CacheManager::getInstance("auto", $configCache); $shortcode = strtolower(trim($func->stripHtml($_REQUEST['a']))); // article shortcode $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $plista_time = time() - 24*60*60; /* $HtmlOutputCache = $cache->get("SHOWPAGE".$shortcode); if (!is_null($HtmlOutputCache) && strlen($HtmlOutputCache) > 5000){ // temporary disabled echo $HtmlOutputCache; $cachehit = date('l jS \of F Y h:i:s A'); echo ""; exit(0); } */ if ( stripos($_SERVER['REQUEST_URI'], "show.php") !== FALSE ){ $gotofinalpage = "https://blog.onetopp.com/".$func->makeArticleLink($shortcode); header("HTTP/1.1 301 Moved Permanently"); header("Location: $gotofinalpage"); exit(0); } else { $seconds_to_cache = 2592000; $ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT"; header("Content-Type: text/html; charset=UTF-8"); header("Expires: $ts"); header('Cache-Control: public, max-age=2592000, pre-check=2592000'); header('X-UA-Compatible: IE=edge,chrome=1'); header("Pragma: cache"); } //$header = $html->StartpageGenerateHeader(0); $ReturnContentArray = $html->DetailpageGenerateContentV3($shortcode); $description_text = $func->clear_description($ReturnContentArray["articletext"]); $title_tags = strip_tags($ReturnContentArray["headline"]); $title_tags = str_replace('"',"",$title_tags); $canonical = "https://blog.onetopp.com/".$func->makeArticleLink($shortcode); $canonical_amp = str_replace(".html",".amp.html", $canonical); $title = $ReturnContentArray["headline"]; $content = array_merge( array('robots'=>"INDEX,FOLLOW,ALL"), array('title_tags'=>$title_tags), array('title'=>$title), array('description'=>"$description_text ... OneTOPP the TrendScouting Company"), //array('HtmlPageHeader'=>$header), array('HtmlInlineCSS'=>$func->getIndexNewInlineCSS()), array('image'=>"https://blog.onetopp.com/i.php?s=$shortcode"), //array('image'=>"https://cdn.onetopp.com/image/$shortcode.png"), array('keywords'=>$ReturnContentArray["keywords"]), array('category'=>$ReturnContentArray["category"]), array('canonical'=>$canonical), array('canonical_amp'=>$canonical_amp), array('breadcrumb'=>$ReturnContentArray["breadcrumb"]), array('video_yt_beautify_ssl'=>$ReturnContentArray["video_yt_beautify_ssl"]), array('YoutubeVideoCountent'=>"'".$ReturnContentArray["YoutubeVideoCountent"]."'"), //array('JavaScriptInlineCSS'=>$func->getJavaScriptInlineContent()), array('HtmlPageContent'=>$ReturnContentArray["returncontent"]) ); $design->setPath("/home/www/blog.onetop.com/tplv3"); //$design->display_cache('show_new', $content, true, 3600*24*3); $HtmlOutputDesign = $design->display_cache('show_new', $content, false, false, 3600*24*31); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); //$cache->set("SHOWPAGE".$shortcode, $htmlMinified,3600*24*31); echo $htmlMinified; //echo $HtmlOutputDesign; $logs->logQuerys("OneTOPP BLOG Detailpage"); exit(0);