[ckan-dev] Caching - package pages (development copy)

William Waites ww at eris.okfn.org
Thu Dec 2 17:11:15 UTC 2010


* [2010-12-02 16:57:59 +0000] David Read <david.read at okfn.org> écrit:

] But the ETags caching is still a sore thumb - you still can't turn off
] ETags caching with cache_enabled = False.

    def wrapper(func, *args, **kwargs):
        pylons = get_pylons(args)
        enabled = pylons.config.get("cache_enabled", "True")
        if not asbool(enabled):
            log.debug("Caching disabled, skipping cache lookup")
            return func(*args, **kwargs)
	...

This is not setting an ETag or doing anything at all if cache_enable
is false... If you are seeing something different happening please
look a little deeper.

-w

-- 
William Waites
http://eris.okfn.org/ww/foaf#i
9C7E F636 52F6 1004 E40A  E565 98E3 BBF3 8320 7664




More information about the ckan-dev mailing list