"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(); //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); $HtmlOutputCache = $cache->get("CATEGORYPAGE".$CategoryID); 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); } */ $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('breadcrumb'=>$ReturnContentArray["breadcrumb"]), array('canonical'=>"https://www.buzzerstar.com/kategorie/$category"), array('title'=>"$category - Funny Stories auf BuzzerStar $plus_page_title"), array('title_tags'=>"$category - Funny Stories mit lustigen Videos auf BuzzerStar $plus_page_title"), array('HtmlInlineCSS'=>$func->getIndexNewInlineCSS()), array('HtmlPageContent'=>$ReturnContentArray["returncontent"]) ); $design->setPath("/home/www/wwwbuzzerstar/tplv3"); $HtmlOutputDesign = $design->display_cache('category_new', $content, false, false, 3600*24*3); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); //$cache->set("CATEGORYPAGE".$CategoryID, $htmlMinified,3600*24*3); echo $htmlMinified; $logs->logQuerys("Kategorie Page $category"); exit(0); ?>