"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 ), ); $func = new Functions(); $html = new HTML(); $design = new Template(); phpFastCache::setup($configCache); $cache = new phpFastCache(); $page = $func->stripHtml($_REQUEST['p']); if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } elseif ( $page >= 55 ) { // as of 13.10.2015 we only have 690 articles with 20 artikel per startpage header("HTTP/1.1 301 Moved Permanently"); header("Location: https://www.buzzerstar.com/"); exit(0); } $HtmlOutputCache = $cache->get("INDEXPAGE".$page); if (strlen($HtmlOutputCache) > 5000){ // temporary disabled echo $HtmlOutputCache; exit(0); } $header = $html->StartpageGenerateHeader(1); $content = $html->StartpageGenerateNews($page); if ($page > 120){ $robots = "NOINDEX,FOLLOW"; } else { $robots = "INDEX,FOLLOW,ALL"; } $content = array_merge( array('robots'=>$robots), array('title'=>"Coole News auf BuzzerStar. Erzähl Sie weiter!"), array('description'=>"Interessante, spannende und coole Nachrichten aus Entertainment, Kurioses, Lifestyle, Lustiges und Dating - teile deine News im Web!"), array('HtmlStartPageHeader'=>$header), array('HtmlInlineCSS'=>$func->getIndexNewInlineCSS()), array('JavaScriptInlineCSS'=>$func->getJavaScriptInlineContent()), array('HtmlStartPageContent'=>$content) //array('inlineCSS'=>$func->getNewInlineCSS()) ); $design->setPath( "/home/www/wwwbuzzerstar/tpl-new" ); //$design->display_cache('startpage_new', $content, true, false, 3600*24*3); $HtmlOutputDesign = $design->display_cache('startpage_new', $content, false, false, 3600*24*3); $cache->set("INDEXPAGE".$page, $HtmlOutputDesign,3600*12); echo $HtmlOutputDesign; exit(0);