From ef6f5ef78fa3af748a29a267c76354636298adea Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 23 Sep 2013 00:43:27 +0200 Subject: [PATCH] Improved error handling. --- lib/sessions/backend/collections.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sessions/backend/collections.rb b/lib/sessions/backend/collections.rb index 5416c54b6..345a08ce1 100644 --- a/lib/sessions/backend/collections.rb +++ b/lib/sessions/backend/collections.rb @@ -20,7 +20,7 @@ module Sessions::Backend::Collections # check all collections to push push_collection = {} collections.each { | key, v | - cache_key = 'user_' + user.id.to_s + '_push_collections_' + key + cache_key = 'user_' + user.id.to_s + '_push_collections_' + key.to_s if Sessions::CacheIn.expired(cache_key) if push_collection.empty? push_collection = SessionHelper::push_collections(user) @@ -45,7 +45,7 @@ module Sessions::Backend::Collections collections = Sessions::CacheIn.get( cache_key ) || {} collections.each { | key, v | - collection_cache_key = 'user_' + user.id.to_s + '_push_collections_' + key + collection_cache_key = 'user_' + user.id.to_s + '_push_collections_' + key.to_s collection_time = Sessions::CacheIn.get_time( collection_cache_key, { :ignore_expire => true } ) if collection_time && @@last_change[ user.id ][ key ] != collection_time