"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(); $html = new HTML(); $design = new Template(); //use phpFastCache\CacheManager; //$cache = CacheManager::getInstance("auto", $configCache); $page = $func->stripHtml($_REQUEST['p']); if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } if ($page >= 2){ $robots = "NOINDEX,FOLLOW"; $p_rand = rand(7, 30); $content = $html->StartpageGenerateNewsV3($p_rand); } else { $robots = "INDEX,FOLLOW,ALL"; $content = $html->StartpageGenerateNewsV3($page); } $content = array_merge( array('robots'=>$robots), array('title'=>"Disruptive Technology, IT, Software & StartUp Trends - We build Businesses!"), array('description'=>"We collect, analyze and evaluate IT and Technology Trends that YOU can use to start, rebuild or diversify your eCommerce & Online Business!"), array('HtmlInlineCSS'=>$func->getIndexNewInlineCSS()), //array('JavaScriptInlineCSS'=>$func->getJavaScriptInlineContent()), array('HtmlStartPageContent'=>$content) //array('inlineCSS'=>$func->getNewInlineCSS()) ); $design->setPath("/home/www/blog.onetop.com/tplv3/"); //$design->display_cache('startpage_new', $content, true, false, 3600*24*3); $HtmlOutputDesign = $design->display_cache('startpage_new', $content, false, false, 3600*3); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); //$cache->set("INDEXPAGE".$page, $htmlMinified,3600*3); echo $htmlMinified; //echo $HtmlOutputDesign; $logs->logQuerys("OneTOPP BLOG Startpage"); exit(0);