Le 27 janvier 2012 12:33, Andreas Jung <span dir="ltr"><<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>></span> a écrit :<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi there,<br>
<br>
I have a custom action inside the portal_tabs action category<br>
with a condition:<br>
<br>
python: portal.restrictedTraverse('isAllowed')()<br>
<br>
isAllowed() returns True/False for anonymous/non-anoymous users<br>
<br>
There seems to be some caching of the portal_tabs actions since<br>
the code of isAllowed is called across requests only *once*<br>
and not every time...this caching appears stupid (and dangerous) - why<br>
does it happen?<br></blockquote><div><br>Hi Andreas, <br></div><div><br>This is strange because the only caching I can see for  is the "in request" caching in the plone_context_state. I made a portal_tab action in a vanilla Plone 4.1 with this condition (and no permission) :<br>
<br>python:portal.plone_log('evaluating', 'a portal tab') or True<br><br>A new line appears in the log for each user request, no more, no less. Perhaps are you using a 3rd party component that makes a more aggressive cache on portal_tabs.<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- -aj<br>
<br>
- --<br>
ZOPYX Limited           | zopyx group<br>
Charlottenstr. 37/1     | The full-service network for Zope & Plone<br>
D-72070 Tübingen        | Produce & Publish<br>
<a href="http://www.zopyx.com" target="_blank">www.zopyx.com</a>           | <a href="http://www.produce-and-publish.com" target="_blank">www.produce-and-publish.com</a><br>
- ------------------------------------------------------------------------<br>
E-Publishing, Python, Zope & Plone development, Consulting<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (Darwin)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQGUBAEBAgAGBQJPIouiAAoJEADcfz7u4AZjzeALvi4I8RTjeeI2BDNBDfmDY5gg<br>
j6K73XcaM7++bTlnqfMyjCuX5llMoi0j1yx096gKxQBStJg68iH8VVbHWQS4IVOK<br>
lib6CBTRdafnw4ghOJRaRkuPDH9sDaKoa/gTRO6uKuAATqsmPEi/RwnhrDgIXKTo<br>
Jgw+6hPw8Yt9y/Fig3MxzzlkRlwBAFdVuqZuZK9S/BYlNoscbjdAgj16FiZxMGAy<br>
JgV2rlr+BRG3f7KZFIUUKMDKEBCTWQ0n7h5EPNgHvJrjqkE6JCCbINh4aoJlKA5W<br>
ZVNo8Ojya1URL/b4TGBK0FjTPswuDghF07Tlid4izZCBixKaXQZQmqixbkiE9E/H<br>
D3SbJEca0HYj7YgMFh8NNCjDRcxas2UYP1nS7Tx5cgieDKseiTHEj+qvdURovu90<br>
kjuWqcnQhJvzevM5bWjLo+9GO/rSHTja/nYCxNLxlfNK+z8sBHfQxoNp5JcDr9ec<br>
T8q5uvKCtPM39ew0VsEE9vNWFcL7N8c=<br>
=xDSo<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><span></span><span></span>-- <br>Gilles LENFANT<br>Ingénieur avant-vente - Architecte senior<br>ALTER WAY SOLUTIONS<br>T : 01 78 15 24 00<br>F : 01 46 02 44 04<br><br>
Téléchargez notre nouveau livre blanc "Python, le développement autrement"<br><a href="http://www.alterway.fr/publications/python-le-developpement-autrement" target="_blank">http://www.alterway.fr/publications/python-le-developpement-autrement</a><br>
<br>1 rue Royal, Bat. D<br>227, les Bureaux de la Colinne<br>92210 Saint Cloud<br><a href="http://www.alterway.fr/solutions" target="_blank">http://www.alterway.fr/solutions</a><br>