Ignore:
Timestamp:
Oct 19, 2008, 2:02:50 AM (16 years ago)
Author:
broder
Message:

invirt.database.clear_cache should actually do something

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/python/database/models.py

    r1014 r1136  
    120120
    121121def clear_cache():
    122     """Clear sqlalchemy's cache.
     122    """Clear sqlalchemy's cache
     123    """
    123124
    124     This _seems_ to be the way; it works, but the docs don't mention
    125     it.  Why is this so obscure?"""
    126 
    127     # XXX maybe we still need to do this, but it's not doc'd how.
    128     #ctx.registry.clear()
     125    session.clear()
Note: See TracChangeset for help on using the changeset viewer.