]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blobdiff - cache-enable.patch
enable cache in table.php
[packages/dokuwiki-plugin-data.git] / cache-enable.patch
diff --git a/cache-enable.patch b/cache-enable.patch
new file mode 100644 (file)
index 0000000..b97802f
--- /dev/null
@@ -0,0 +1,15 @@
+--- syntax/table.php~  2012-08-07 18:56:10.000000000 +0300
++++ syntax/table.php   2012-08-17 01:26:46.814865996 +0300
+@@ -204,7 +204,11 @@
+     function render($format, &$R, $data) {
+         if($format != 'xhtml') return false;
+         if(is_null($data)) return false;
+-        $R->info['cache'] = false;
++
++        // disable cache only if sorting having some filters
++        if (!empty($_REQUEST['datasrt']) || !empty($_GET['dataflt']) || !empty($_REQUEST['dataofs'])) {
++            $R->info['cache'] = false;
++        }
+         $sqlite = $this->dthlp->_getDB();
+         if(!$sqlite) return false;
This page took 0.06813 seconds and 4 git commands to generate.