alphagov/maslow — pull request #120 by jamiecobbett (2014-10-09 15:06:28+00:00)
Title: Cache Organisations for an hour

Currently, organisations are cached in each process until the app is restarted. So new and changed organisations aren't reflected in the app, possibly for months.

This change means they are only cached for an hour when fetched from govuk_need_api. govuk_need_api only updates once per day from Whitehall, but I'm going to change this in a separate pull request. Speaking with @fatbusinessman, Maslow uses govuk_need_api for organisations to avoid a dependency on Whitehall in development.

Copied from smart-answers WorldLocation model, hat tip to @alext.