   ###
   addLocation: (location) ->
     cache[location.slug] = location
-    @writeCache()
+    @write()
 
   ###
   Attempts to retrieve a location from the cache

  ###
  removeLocation: (slug) ->
    delete cache[slug]
    @writeCache()

  ###
  Check if a location exists in the cache

  return bool
  ###
  locationNeedsUpdate: (slug, units = 'imperial') ->
    # If there's no matching cache slug, we definitely need to update
    return true if !@locationExists slug

    # If there's not weather data, skip the cache
    latest = cache[slug].weather?[units]
    return true if !latest
