On Mon, Feb 28, 2011 at 17:09, Maurits van Rees
> That works: the blobs stay. But then it looks like the blob cache size
> is only checked once when starting up the zope instance. For example
> with a blob cache size of 100,000 bytes and two images of about 65K and
> one of about 1MB, I don't see any blobs getting removed from the cache
> while visiting those images or pages that show them.
There is a cache cleanup run during transaction vote as well, but it
looks like that only is applied when there are blob changes to commit.
But we've now at least established that the cache cleanup in
RelStorage is to blame here, so we can focus on
_check_blob_cache_size, specifically on line 490 and further.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org