[web2py] Re: Suggested change to gae_memcache.py

2012-09-14 Thread Matt
Great. Thanks :)

Matt

On Saturday, September 15, 2012 2:16:56 PM UTC+12, Massimo Di Pierro wrote:
>
> in trunk! Thanks.
>
> On Friday, 14 September 2012 19:33:11 UTC-5, Matt wrote:
>>
>> Hi there,
>>
>> Making the following minor change:
>>
>> def clear(self, key = None):
>> if key:
>>   key = '%s/%s' % (self.request.application, key)
>>   self.delete(key)
>> else:
>>   self.flush_all()
>>
>> would allow the entire cache to be cleared via.
>>
>> cache.ram.clear()
>>
>> Matt
>>
>>
>>
>>
>>
>>
>>

-- 





[web2py] Re: Suggested change to gae_memcache.py

2012-09-14 Thread Massimo Di Pierro
in trunk! Thanks.

On Friday, 14 September 2012 19:33:11 UTC-5, Matt wrote:
>
> Hi there,
>
> Making the following minor change:
>
> def clear(self, key = None):
> if key:
>   key = '%s/%s' % (self.request.application, key)
>   self.delete(key)
> else:
>   self.flush_all()
>
> would allow the entire cache to be cleared via.
>
> cache.ram.clear()
>
> Matt
>
>
>
>
>
>
>

--