function post_folder($post_id) { $url = get_permalink($post_id); $parts = parse_url($url); return $parts['host'] . hyper_cache_sanitize_uri($parts['path']); }
$cache_stop = true; return false; } } } } // Globally used $hyper_cache_group = ''; if (HC_HTTPS === 1 && $hyper_cache_is_ssl) { $hyper_cache_group .= '-https'; } if (HC_MOBILE === 1 && $hyper_cache_is_mobile) { $hyper_cache_group .= '-mobile'; } //$hc_file = ABSPATH . 'wp-content/cache/lite-cache' . $_SERVER['REQUEST_URI'] . '/index' . $hc_group . '.html'; $hc_uri = hyper_cache_sanitize_uri($_SERVER['REQUEST_URI']); $hc_file = 'HC_FOLDER/' . strtolower($_SERVER['HTTP_HOST']) . $hc_uri . '/index' . $hyper_cache_group . '.html'; if (HC_GZIP == 1 && $hyper_cache_gzip_accepted) { $hc_gzip = true; } else { $hc_gzip = false; } if ($hc_gzip) { $hc_file .= '.gz'; } if (!is_file($hc_file)) { hyper_cache_header('continue - no file'); return false; } $hc_file_time = filemtime($hc_file); if (HC_SERVE_EXPIRED_TO_BOT && $hyper_cache_is_bot) {