[Product-Developers] Adding an "object lock state" in CacheSetup for ETag computation
Tarek Ziadé
ziade.tarek at gmail.com
Sat Apr 11 19:15:43 UTC 2009
On Sat, Apr 11, 2009 at 9:09 PM, Gilles Lenfant
<gilles.lenfant at ingeniweb.com> wrote:
> 2009/4/9 Tarek Ziadé <ziade.tarek at gmail.com>:
>>
>> Hello,
>>
>> to make CacheFu work properly with ETags, I had to append in the ETag the lock state
>> of the object:
>>
>> ILockable(object).locked()
>
> Hi,
>
> Using "object/@@plone_context_state/is_locked" in the ETag expression
> of relevant cache rules should do the job, as ILockable is not
> exposed.
My point is that this should be a hard coded checkable option in
CacheFu, not an expression someone might or
might not add.
Because if you don't add it, it doesn't behave right.
Tarek
More information about the Product-Developers
mailing list