]>
Commit | Line | Data |
---|---|---|
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 | |
7d759b68 | 10 | + if ($data['dynfilters'] || !empty($_REQUEST['datasrt']) || !empty($_GET['dataflt']) || !empty($_REQUEST['dataofs'])) { |
147d6c0c ER |
11 | + $R->info['cache'] = false; |
12 | + } | |
13 | ||
14 | $sqlite = $this->dthlp->_getDB(); | |
15 | if(!$sqlite) return false; |