]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blob - cache-enable.patch
6133ac186459ac491eede40e50a41abdcb786895
[packages/dokuwiki-plugin-data.git] / cache-enable.patch
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 ($data['dynfilters'] || !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.036348 seconds and 3 git commands to generate.