Ticket #2220 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

make ckan cacheable

Reported by: toby Owned by: toby
Priority: awaiting triage Milestone: ckan-sprint-2012-03-19
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

need to sort cookies etc

should work with nginx and varnish

Change History

comment:1 Changed 2 years ago by toby

  • Owner set to toby
  • Status changed from new to accepted

issues:

1) want to cache static files long term - need to add a ?ver=xxx to allow changes - this will need a change to all templates etc - could be seen as a good thing

2) we can only purge specific pages not whole cache so we need to know all the urls which want to be invalidated - including language variants

3) urls should be consistent so we should use id not name for datasets etc

4) for now we can just use short expiry times as this prevents some of these problems

comment:2 Changed 2 years ago by rgrp

  • Milestone set to ckan-sprint-2012-03-19

comment:3 Changed 2 years ago by toby

Implementation of this has been carried out at the page level.

ckan.page_cache_enabled is config option to enable it

requires redis

need to document it somewhere

comment:4 Changed 2 years ago by toby

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.