A free, self-hostable news aggregator…
Constant to enable PHP compression
Alexandre Alapetitefd829d75676a
diff --git a/constants.php b/constants.phpindex 4818f1565..e32b8cbc3 100644--- a/constants.php+++ b/constants.php@@ -2,6 +2,9 @@define('FRESHRSS_VERSION', '0.8-dev');define('FRESHRSS_WEBSITE', 'http://freshrss.org');+// PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level)+define('PHP_COMPRESSION', false);+// Constantes de cheminsdefine('FRESHRSS_PATH', dirname(__FILE__));diff --git a/p/i/index.php b/p/i/index.phpindex 187bbabe8..4afffb3dd 100755--- a/p/i/index.php+++ b/p/i/index.php@@ -35,7 +35,7 @@ if (file_exists ('install.php')) {@filemtime(LOG_PATH . '/' . $currentUser . '.log'),@filemtime(DATA_PATH . '/config.php'));- if (httpConditional($dateLastModification, 0, 0, false, false, true)) {+ if (httpConditional($dateLastModification, 0, 0, false, PHP_COMPRESSION, true)) {exit(); //No need to send anything}}