Gary van der Merwe пишет:
> On 25/08/2010 07:49, Alexander Belchenko wrote:
>> Yes, I'm invalidating the cache on put, and on rename/move calls. But
>> looking at logs it seems only put matters.
>
> I would say you should rename the cache when the file is renamed. So if
> you rename a b then you should do:
> cache['b'] = cache['a']
> del cache['a']
I'd prefer to invalidate the cache instead of moving content. Because at
this point I don't know will operation be successful or not.
Gary van der Merwe пишет:
> On 25/08/2010 07:49, Alexander Belchenko wrote:
>> Yes, I'm invalidating the cache on put, and on rename/move calls. But
>> looking at logs it seems only put matters.
>
> I would say you should rename the cache when the file is renamed. So if
> you rename a b then you should do:
> cache['b'] = cache['a']
> del cache['a']
I'd prefer to invalidate the cache instead of moving content. Because at
this point I don't know will operation be successful or not.