Browse Source

Increased time period for check of already pushed objects.

Martin Edenhofer 12 years ago
parent
commit
a9dee81a96
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/session.rb

+ 2 - 2
lib/session.rb

@@ -448,7 +448,7 @@ class ClientState
 
       # verify already pushed data
       if !CacheIn.get( 'pushed_users' + @client_id.to_s )
-        CacheIn.set( 'pushed_users' + @client_id.to_s , true, { :expires_in => 15.seconds } )
+        CacheIn.set( 'pushed_users' + @client_id.to_s , true, { :expires_in => 20.seconds } )
         if @pushed[:users]
           users = {}
           @pushed[:users].each {|user_id, user_o|
@@ -473,7 +473,7 @@ class ClientState
 
       # verify already pushed data
       if !CacheIn.get( 'pushed_tickets' + @client_id.to_s )
-        CacheIn.set( 'pushed_tickets' + @client_id.to_s , true, { :expires_in => 15.seconds } )
+        CacheIn.set( 'pushed_tickets' + @client_id.to_s , true, { :expires_in => 20.seconds } )
         if @pushed[:tickets]
           tickets = []
           users = {}