Skip to content

Commit

Permalink
Merge pull request #1802 from anandaroop/uncache-cities
Browse files Browse the repository at this point in the history
@craigspaeth => Remove unnecessary caching for static city files
  • Loading branch information
craigspaeth authored Sep 29, 2017
2 parents 91a6db4 + 8dfc93f commit 5d0496e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion desktop/apps/collect/routes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GeocodedCities = require '../../collections/geocoded_cities'
@index = (req, res, next) ->
geocodedCities = new GeocodedCities()
Q.all([
geocodedCities.fetch(cache: true)
geocodedCities.fetch()
page.get()
]).spread (geocodedCities, pageData) ->
res.locals.sd.CATEGORIES = pageData
Expand Down
4 changes: 2 additions & 2 deletions desktop/apps/galleries_institutions/routes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ fetchPartnerCategories = (type) ->

Promise.all([
fetchPrimaryCarousel(params)
partnerCities.fetch(cache: true)
partnerFeaturedCities.fetch(cache: true)
partnerCities.fetch()
partnerFeaturedCities.fetch()
fetchPartnerCategories(type)
])
.then ([profiles, partnerCities, partnerFeaturedCities, categories]) ->
Expand Down
8 changes: 4 additions & 4 deletions desktop/apps/shows/routes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ PartnerFeaturedCities = require '../../collections/partner_featured_cities'
partnerFeaturedCities = new PartnerFeaturedCities()

Q.all([
partnerCities.fetch(cache: true)
partnerFeaturedCities.fetch(cache: true)
partnerCities.fetch()
partnerFeaturedCities.fetch()
shows.fetch(cache: true)
]).then ->
res.render 'index',
Expand All @@ -32,8 +32,8 @@ PartnerFeaturedCities = require '../../collections/partner_featured_cities'
partnerFeaturedCities = new PartnerFeaturedCities()

Q.all([
partnerCities.fetch(cache: true)
partnerFeaturedCities.fetch(cache: true)
partnerCities.fetch()
partnerFeaturedCities.fetch()
]).then ->
city = _.findWhere(partnerCities.toJSON(), slug: req.params.city)
return next() unless city?
Expand Down

0 comments on commit 5d0496e

Please sign in to comment.