commit 7d759b68decd3a3f62056510335984096dfcb71e
Author: Elan Ruusamäe <[email protected]>
Date: Sat Aug 18 09:31:05 2012 +0300
if table has dynfilters enabled, disable cache
cache-enable.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/cache-enable.patch b/cache-enable.patch
index b97802f..6133ac1 100644
--- a/cache-enable.patch
+++ b/cache-enable.patch
@@ -7,7 +7,7 @@
- $R->info['cache'] = false;
+
+ // disable cache only if sorting having some filters
-+ if (!empty($_REQUEST['datasrt']) || !empty($_GET['dataflt']) ||
!empty($_REQUEST['dataofs'])) {
++ if ($data['dynfilters'] || !empty($_REQUEST['datasrt']) ||
!empty($_GET['dataflt']) || !empty($_REQUEST['dataofs'])) {
+ $R->info['cache'] = false;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-data.git/commitdiff/7d759b68decd3a3f62056510335984096dfcb71e
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit