mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:15:56 +00:00
new option: ENABLE_GZIP_OUTPUT
This commit is contained in:
@@ -63,7 +63,12 @@
|
|||||||
if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" ||
|
if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" ||
|
||||||
$op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
|
$op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
|
||||||
$op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
|
$op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
|
||||||
header("Content-Type: application/xml; charset=utf-8");
|
header("Content-Type: application/xml; charset=utf-8");
|
||||||
|
|
||||||
|
if (ENABLE_GZIP_OUTPUT) {
|
||||||
|
ob_start("ob_gzhandler");
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (!$_REQUEST["noxml"]) {
|
if (!$_REQUEST["noxml"]) {
|
||||||
header("Content-Type: text/html; charset=utf-8");
|
header("Content-Type: text/html; charset=utf-8");
|
||||||
|
|||||||
@@ -180,7 +180,11 @@
|
|||||||
// Allow users to select the library to update feeds with - e.g.
|
// Allow users to select the library to update feeds with - e.g.
|
||||||
// Magpie or SimplePie
|
// Magpie or SimplePie
|
||||||
|
|
||||||
define('CONFIG_VERSION', 15);
|
define('ENABLE_GZIP_OUTPUT', false);
|
||||||
|
// Selectively gzip output to improve wire performance. This requires
|
||||||
|
// PHP Zlib extension on the server.
|
||||||
|
|
||||||
|
define('CONFIG_VERSION', 16);
|
||||||
// Expected config version. Please update this option in config.php
|
// Expected config version. Please update this option in config.php
|
||||||
// if necessary (after migrating all new options from this file).
|
// if necessary (after migrating all new options from this file).
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
|
||||||
define('EXPECTED_CONFIG_VERSION', 15);
|
define('EXPECTED_CONFIG_VERSION', 16);
|
||||||
define('SCHEMA_VERSION', 37);
|
define('SCHEMA_VERSION', 37);
|
||||||
|
|
||||||
if (!file_exists("config.php")) {
|
if (!file_exists("config.php")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user