Jonathan Ellis said: > > Now that's an example of when I think sessions are a poor solution. IMO > caching objects from the database is the job for the, well, database > object cache. :) > > They are similar but not identical. For instance, while session data > typically expires after a certain amount of time, permanent data should > never expire unless invalidated by an update. >
putting a few user preferences in the session instead of constructing and/or installing a separate database caching system is cheating, but its a small cheat. I think small cheats are fine to get a job done; the exact specification and design of big architectural features are usually derived from the set of small cheats they are replacing. _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com