]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
Merge branch 'master' of dim0x69/tt-rss into master
[tt-rss.git] / include / functions.php
index 4265692ec05d783a524e48357f4f73ce946c60ee..5667ac416ec7b3dd7469f8e1678ec641d93ea87e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 132);
+       define('SCHEMA_VERSION', 133);
 
        define('LABEL_BASE_INDEX', -1024);
        define('PLUGIN_FEED_BASE_INDEX', -128);
@@ -57,6 +57,9 @@
        // do not cache files smaller than that (bytes)
        define_default('CACHE_MAX_DAYS', 7);
        // max age in days for various automatically cached (temporary) files
+    define_default('MAX_CONDITIONAL_INTERVAL', 3600*12);
+    // max interval between forced unconditional updates for servers
+    // not complying with http if-modified-since (seconds)
 
        /* tunables end here */
 
                }
        }
 
+       function check_mysql_tables() {
+               $schema = db_escape_string(DB_NAME);
+
+               $result = db_query("SELECT engine, table_name FROM information_schema.tables WHERE
+                       table_schema = '$schema' AND table_name LIKE 'ttrss_%' AND engine != 'InnoDB'");
+
+               $bad_tables = [];
+
+               while ($line = db_fetch_assoc($result)) {
+                       array_push($bad_tables, $line);
+               }
+
+               return $bad_tables;
+       }
+