Web2py-ers,

Does cache.ram not work with mod_wsgi/apache?  Is it because of the
multiple apache processes?

Sample code:

result = cache.ram(response.session_id,lambda: cacheFunc(),600)

def cacheFunc():
  file("/home/www/test.txt","a").write(str(time.time())+"\n")
  return True

Reloading the page over and over my test.txt looks like-->

1240582612.08
1240582620.38
1240582626.63
1240582631.85

Thanks,

Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to