# HG changeset patch # User Paul Boddie # Date 1391016178 -3600 # Node ID 0fd1ed4947637fe728e8dd75a41c03d221470884 # Parent ed584d9fa250b02b831dfb7640ecc9064d7bb6d8 Updated the cache entry key calculation to support an extra argument indicating request parameter usage. diff -r ed584d9fa250 -r 0fd1ed494763 MoinSupport.py --- a/MoinSupport.py Wed Jan 29 12:42:55 2014 +0100 +++ b/MoinSupport.py Wed Jan 29 18:22:58 2014 +0100 @@ -838,17 +838,17 @@ # Page caching functions. -def getPageCacheKey(page, request): +def getPageCacheKey(page, request, with_params=False): """ Return a cache key for the given 'page' using information in the 'request'. """ if hasattr(page, "getCacheKey"): - return page.getCacheKey(request) + return page.getCacheKey(request, with_params) key = getPageFormatterName(page, request) - if request.args: + if request.args and with_params: args = request.args.items() args.sort() key_args = []