Commits

John Chandler  committed afbb8a7

Mental note: don't code when tired

  • Participants
  • Parent commits bfdf21d

Comments (0)

Files changed (1)

File fluidproxy/django_fluidproxy.py

 from django.core.cache import cache
 from fom.session       import Fluid
 
+CACHE_TIMEOUT = 60*60
+
 
 def generate_cache_key( path ):
     """ Returns a key suitable for calls to cache """
         value = cache.get( key )
         if not value:
             value = self.fluid.db( "GET", path ).value
-            cache.set( key, value, random.choice(CACHE_TIMEOUTS) )
+            cache.set( key, value, CACHE_TIMEOUT )
         return value
 
     def preload( self, path, value=None ):