"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(); $conn = new Connection(); $texts = new Texts(); $func = new Functions(); $config = new Config(); $design = new Template(); $html = new HTML(); $logs->logQuerys(); use phpFastCache\CacheManager; $cache = CacheManager::getInstance("auto", $configCache); $pdo = $conn->prepareQuery(); $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $maxPageCount = $config->catg_max_results(); $page = $func->stripHtml($_REQUEST['p']); $CategoryName = strtolower($func->stripHtml($_REQUEST['i'])); $CategoryID = $func->categoryNametoID($CategoryName); if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } else { $plus_page_title = " - Seite $page"; } $HtmlOutputCache = $cache->get("CATEGORYPAGE".$page.$CategoryID); if (!is_null($HtmlOutputCache) && strlen($HtmlOutputCache) > 5000){ // temporary disabled echo $HtmlOutputCache; exit(0); } $ReturnContentArray = $html->CategoryPageGenerateContentV3($page,$CategoryID); $description_text = $func->clear_description($ReturnContentArray["articletext"]); $robots = $ReturnContentArray["robots"]; $keywords = $ReturnContentArray["keywords"]; $category = $ReturnContentArray["category"]; $arrayCategoryHeaderText = $texts->categoryTexte(); $categoryHeaderText = $arrayCategoryHeaderText[$CategoryID]; $description_text = trim(substr($categoryHeaderText, 0, 150)); $content = array_merge( array('keywords'=>$keywords), array('robots'=>$robots), array('description'=>$description_text), array('canonical'=>"https://www.buzzerstar.com/kategorie/$category"), array('title'=>"$category - coole News auf BuzzerStar $plus_page_title"), array('title_tags'=>"$category - coole News auf BuzzerStar $plus_page_title"), array('HtmlInlineCSS'=>$func->getIndexNewInlineCSS()), array('HtmlPageContent'=>$ReturnContentArray["returncontent"]) ); $design->setPath( "/home/www/wwwbuzzerstar/tpl-new" ); $HtmlOutputDesign = $design->display_cache('category_new', $content, false, false, 3600*24*3); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); //$cache->set("CATEGORYPAGE".$page.$CategoryID, $htmlMinified,3600*24*24); echo $htmlMinified; exit(0); ?>