Changeset 9398


Ignore:
Timestamp:
Jul 12, 2011, 3:58:11 PM (13 years ago)
Author:
rick
Message:

Giving the cache a special key, allows the cache to be cleared more easy.

Location:
src/django_gheat/wlheatmap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/osm_proxy.py

    r9391 r9398  
    1616
    1717# Create your views here.
    18 @cache_page(60 * 60 * 24 * 7)
     18@cache_page(60 * 60 * 24 * 7, key_prefix="osm_proxy")
    1919def osm_proxy(request,zoom,x,y):
    2020  mirror = random.choice(['a','b','c'])
  • src/django_gheat/wlheatmap/tile.py

    r9394 r9398  
    248248
    249249# Create your views here.
    250 @cache_page(60 * 60 * 24)
     250@cache_page(60 * 60 * 24, key_prefix="wlheatmap_tile")
    251251def serve_tile(request,zoom,x,y):
    252252  filter = {}
Note: See TracChangeset for help on using the changeset viewer.