i do this myself. it saves me a bunch of database calls and bottlenecks. i use a slightly different approach though:
- i pickle the data as i assemble it - i load stuff up on app initialization, and only hit the db the pickled file is older than 10 minutes or doesn't exist ( it cuts down development when "paster --reload" is used - i set a timestamp for all my 'constants' , and have them refresh at regular intervals. this keeps me from needing to restart. i don't quite understand exactly how g works, but i was under the impression that instructing it to reload manually may not work because of threads. so i stayed away from that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
