Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1838

Show
Ignore:
Timestamp:
01/12/08 17:43:56
Author:
fumanchu
Message:

3.0/3.1 fix for #760 (Session tool cleanup frequency).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-3.0.x/cherrypy/lib/sessions.py

    r1774 r1838  
    133133            # clean_up is in instancemethod and not a classmethod, 
    134134            # so tool config can be accessed inside the method. 
    135             t = PerpetualTimer(self.clean_freq, self.clean_up) 
     135            t = PerpetualTimer(self.clean_freq * 60, self.clean_up) 
    136136            t.setName("CP Session Cleanup") 
    137137            cls.clean_thread = t 
  • trunk/cherrypy/lib/sessions.py

    r1801 r1838  
    132132            # so that tool config can be accessed inside the method. 
    133133            t = cherrypy.restsrv.plugins.Monitor( 
    134                 cherrypy.engine, self.clean_up, self.clean_freq
     134                cherrypy.engine, self.clean_up, self.clean_freq * 60
    135135            t.subscribe() 
    136136            cls.clean_thread = t 

Hosted by WebFaction

Log in as guest/cpguest to create tickets