--- /dev/null
+--- 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;
URL: http://wiki.splitbrain.org/plugin:data
Patch2: separator-style.patch
Patch3: separate-rpmdb.patch
+Patch4: cache-enable.patch
BuildRequires: rpm-php-pearprov
BuildRequires: rpmbuild(macros) >= 1.520
Requires: php(core) >= %{php_min_version}
mv *-%{plugin}-*/* .
%patch2 -p1
%patch3 -p1
+%patch4 -p0
version=$(awk '/date/{print $2}' plugin.info.txt)
if [ $(echo "$version" | tr -d -) != %{version} ]; then