I was wrong. This works, but it's not handy to recreate query manually
that was generated by by SA  (it's lazy relation) :(

Maybe it's possible to do that another way?

q = meta.Session.query(Office).\
                           options(cache.FromCache('default',
'by_id')).\
                           filter_by(id=197)
q.invalidate()

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to