Changeset 577

Show
Ignore:
Timestamp:
07/31/09 22:12:57 (4 months ago)
Author:
ykerherve
Message:

uncache objects when they are changed instead of writing to the cache

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r568 r577  
    33Revision history for Data::ObjectDriver 
    440.07 
     5    - When an object is changed, delete the cache instead of updating it. 
     6      It is a bit more expensive, but should safer. 
    57    - Fixed a issue in the test suite for newer version of SQLite 
    68      reported by Emmanuel Seyman 
  • trunk/lib/Data/ObjectDriver/Driver/BaseCache.pm

    r552 r577  
    227227    my $key = $driver->cache_key(ref($obj), $obj->primary_key); 
    228228    $driver->modify_cache(sub { 
    229         $driver->update_cache($key, $driver->deflate($obj)); 
     229        $driver->uncache_object($obj); 
    230230    }); 
    231231    return $ret;