[packages/dokuwiki-plugin-data] if table has dynfilters enabled, disable cache
glen
glen at pld-linux.org
Sun Sep 16 14:34:27 CEST 2012
commit 7d759b68decd3a3f62056510335984096dfcb71e
Author: Elan Ruusamäe <glen at delfi.ee>
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
More information about the pld-cvs-commit
mailing list