The CACHE_MIDDLEWARE_SECONDS is used to compute the HTTP cache header
times. The caching middleware that it refers to (in the name) is for
short-circuiting computation using HTTP-level caching headers. It uses
Django's low-level cache, but is not the same thing.
> Sorry I couldn't grasp the idea after
> rereading The Book.
>
>
> Another relevant q'n: can I configure the cache to expire at
> appropriate time intervals, without coding the logic? Say, there's an
> external event happening every 15 minutes that updates the original
> data Django processes; can Django be configured to give web clients
> the correct cache TTL? Example: the resource is regenerated externally
> at 11:00:00. At 11:00:01 a client accesses it and it should be given
> cache timeout up until 11:15:00, that is, 899 seconds. Client
> accessing at 11:00:02 should be given timeout 898 seconds, and so on.
> Then at 11:15:00 the resource is regenerated again and it comes full
> circle until 11:30:00 this time, and so on.
No, it doesn't work this way. If you want per-object cache times to be
set specifically, you should write your own view decorator or utility
function to do so.
Regards,
Malcolm