Matthew Wilson a écrit :
On Mon 27 Nov 2006 11:07:00 AM EST, Oleg Broytmann wrote:
  
On Mon, Nov 27, 2006 at 03:18:11PM +0000, Matthew Wilson wrote:
    
    conn = model.hub.hub.getConnection()
    results = conn.queryAll('select now()')

I always get the first time over and over again.

What can I do to purge the cache
      
   conn.cache.clear()
    

That doesn't seem to do anything:

In [18]: conn = model.hub.hub.getConnection()

In [19]: conn.queryAll('select now()')
Out[19]: [(<DateTime object for '2006-11-27 20:16:12.000' at b71a44f0>,)]

In [20]: conn.cache.clear()

In [21]: conn.queryAll('select now()')
Out[21]: [(<DateTime object for '2006-11-27 20:16:12.000' at b71a43a0>,)]

Is it possible that since I'm using ipython, something is awry?

Matt

  
These are 2 distinct objects, so it is not the python side cache.
Maybe you get the server side cache result.