From: Ian B. <ia...@co...> - 2003-12-03 16:34:48
|
On Dec 3, 2003, at 9:03 AM, Andrew Barilla wrote: > I'm a fairly new user to SQLObject and Webware but I've got my new > site up and > running. The only thing is that I have set _cacheValues = False in my > SQLObjects so that if I update data, it's reflected on the view-only > part of > the website. Is this the only way to do this or can I force a refresh > of the > cache? I looked through the mailing list archives but couldn't find > anything > definite on this topic. You can force a cache refresh on any instance by calling .refresh(), or .expire() to cause a refresh sometime in the future (when the instance is used again). When you want to expire a whole batch, you'll just run through the objects and do this. DBConnection.Transaction.rollback does this, as a model. -- Ian Bicking | ia...@co... | http://blog.ianbicking.org |