]> git.wh0rd.org - tt-rss.git/commitdiff
new option: ENABLE_GZIP_OUTPUT
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 06:01:19 +0000 (07:01 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 May 2008 06:01:19 +0000 (07:01 +0100)
backend.php
config.php-dist
sanity_check.php

index e5ccd2b77f14131f68c7c4af40223adac234487b..a85351d8a44bf0b1aef2fe9bca710d1830d9621c 100644 (file)
        if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" || 
                        $op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
                        $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 {
                if (!$_REQUEST["noxml"]) {
                        header("Content-Type: text/html; charset=utf-8");
index 52950f80bf49950d42e7a57a88a9ee1484fb5e9a..1694059d57765ab73226424150d9f2a96232ff37 100644 (file)
        // Allow users to select the library to update feeds with - e.g.
        // 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
        // if necessary (after migrating all new options from this file).
 
index 1fca50c2a33bab44aee5ded52093eebceb397a96..41fdf983adc0cb6db5f16499814c3b084a99357d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
        require_once "functions.php";
 
-       define('EXPECTED_CONFIG_VERSION', 15);
+       define('EXPECTED_CONFIG_VERSION', 16);
        define('SCHEMA_VERSION', 37);
 
        if (!file_exists("config.php")) {