]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blame - cache-enable.patch
enable cache in table.php
[packages/dokuwiki-plugin-data.git] / cache-enable.patch
CommitLineData
147d6c0c
ER
1--- syntax/table.php~ 2012-08-07 18:56:10.000000000 +0300
2+++ syntax/table.php 2012-08-17 01:26:46.814865996 +0300
3@@ -204,7 +204,11 @@
4 function render($format, &$R, $data) {
5 if($format != 'xhtml') return false;
6 if(is_null($data)) return false;
7- $R->info['cache'] = false;
8+
9+ // disable cache only if sorting having some filters
10+ if (!empty($_REQUEST['datasrt']) || !empty($_GET['dataflt']) || !empty($_REQUEST['dataofs'])) {
11+ $R->info['cache'] = false;
12+ }
13
14 $sqlite = $this->dthlp->_getDB();
15 if(!$sqlite) return false;
This page took 0.080641 seconds and 4 git commands to generate.