Fixed issue where presets hash is not being cached for as long as it should

This commit is contained in:
Zaid Abdulla committed 2013-07-29 23:55:37 +03:00
1 parent b61b746db4
commit c08fb47f18
1 file changed
+1 -1
+1 -1
View File
@@ -176,7 +176,7 @@ exports.assertPresets = (deviceId, presetsHash, callback) ->
if not presetsHash if not presetsHash
presetsHash = calculatePresetsHash(presets) presetsHash = calculatePresetsHash(presets)
db.memcached.set('presets_hash', presetsHash, expiry - config.PRESETS_TIME_PADDING, (err, res) -> db.memcached.set('presets_hash', presetsHash, config.PRESETS_CACHE_DURATION, (err, res) ->
) )
db.memcached.set("#{deviceId}_presets_hash", presetsHash, expiry - config.PRESETS_TIME_PADDING, (err, res) -> db.memcached.set("#{deviceId}_presets_hash", presetsHash, expiry - config.PRESETS_TIME_PADDING, (err, res) ->