1. 30 May, 2017 1 commit
  2. 11 Oct, 2016 1 commit
  3. 10 Jul, 2016 1 commit
    • [PERF-346] Add a second version component to versioned course asset URLs · f15533dc
      This version component reflects the "version" of the StaticContent
      objects which we cache server-side.  If the layout of those objects
      changes between releases, errors occur when loading them from cache.
      
      By using a separate version value, which can be incremented on its own
      after a change has been made to the StaticContent class, we can avoid
      loading older cached content and in turn take advantage of these changes
      faster, without needing to intervene operationally.
      Toby Lawrence committed
  4. 05 Jul, 2016 1 commit
    • [PERF-344] Add versioning of cached course assets to allow graceful cache invalidation · 4e22affb
      When releasing the versioned assets work, we stumbled on a problem with old pickled
      versions of the StaticContent objects residing in cache, which triggered a bug in the
      code. Not wanting to blow away all cached items, we ended up having to revert and add
      in some backwards-compatible helper code to ease the transition.
      
      With this, we'll now utilize the version argument that Django's caching interface
      allows, in conjunction with a constant value that can be modified when breaking changes
      are being made, to let us gracefully ignore older cached course assets.
      Toby Lawrence committed