/** * Get the filename to use for cached content for the current request. * @return string */ function getCacheFilename() { static $cacheFilename; if (!isset($cacheFilename)) { if (PKPRequest::isPathInfoEnabled()) { $id = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : 'index'; $id .= '-' . Locale::getLocale(); } else { $id = Request::getUserVar('journal') . '-' . Request::getUserVar('page') . '-' . Request::getUserVar('op') . '-' . Request::getUserVar('path') . '-' . Locale::getLocale(); } $path = dirname(dirname(dirname(__FILE__))); $cacheFilename = $path . '/cache/wc-' . md5($id) . '.html'; } return $cacheFilename; }