Windshaft-cartodb/lib/cartodb/cache
Daniel García Aubert a142620b70 Make generic middlewares to calculate surrogate key and cache channel headers:
- In controllers: all reference to map config are now camelized, for instance: mapconfig -> mapConfig or mapconfigProvider -> mapConfigProvider
 - In controllers: all map config providers created in req/res cycle are saved into `res.locals` and `mapConfigProvider` as key.
 - In map-config-providers: all of them implement `.getAffectedTables()`, in order to calculate the tables involved for a given map-config. For that, `pgConnection` and `affectedTablesCache` are injected as constructor argument.
 - Named Map Provider: rename references from `affectedTablesAndLastUpdate` to `affectedTables`.
 - Named Map Provider Cache: In order to create new named map providers, needs affectedTablesCache.
 - Extract locals middlewares (surrogate-key and cache-channel) from controllers and create an unified version of them.
 - Extract last-modified middleware from named maps controller (draft).
2018-03-21 14:11:54 +01:00
..
backend Remove soft-purge option when purging fastly 2015-10-09 16:37:17 +02:00
model Use node-cartodb-query-tables library 2016-02-22 11:40:25 +01:00
layergroup_affected_tables.js Adds lru cache for layergroups and named maps mapconfig provider 2015-07-15 16:51:26 +02:00
named_map_provider_cache.js Make generic middlewares to calculate surrogate key and cache channel headers: 2018-03-21 14:11:54 +01:00
surrogate_keys_cache.js Set headers with set method 2015-09-17 02:03:09 +02:00