Closed 1letter closed 7 months ago
Can you reproduce this on https://classic.demo.plone.org/en ... there the event portlet is always enabled with a test event.
Hm ... I see the URL of the Event on the Demo Site Event Portlet starts with /Plone
which also isn't the expected result ...
fixed by #391
Event Portlet in a Plone 6.0.7 render wrong event URL's
https://mysite.local/plone-site-id/Einrichtungen/...
normally it should be:
https://mysite.local/Einrichtungen/...
I have checked the following commands, it's reproducible:
bin/client1 fg
first call of a site with the event portlet: all is fine second call of a site with the event portlet: urls are wrong
bin/client1 start first call of a site with the event portlet: all is fine second call of a site with the event portlet: urls are wrong
if i downgrade the Package to 5.0.1, all is fine. Any Ideas?
Update if i disable the ram cache decorator in the portlet renderer
# @ram.cache(_render_events_cachekey)
all is fine.Update if i enable the ram cache decorator in the portlet renderer
@ram.cache(_render_events_cachekey)
and purge the RAM Cache via caching-controlpanel, then the next request render the links correctly. but the second call render the links wrong.Update if i use
@instance.memoize
instead of@ram.cache(_render_events_cachekey)
then all is fine, but i don't know what are the side effects.Update
@instance.memoize
is useless. the list of events is not hashable.Update The eventlist values are changed in the ram cache. WTF? I debug plone.memoize.ram and set a breakpoint in the setter and in the getter method.
The event url switch from
http://site.local/testtermin
to/plone/testtermin
. That's very strange.@jensens Do you have experience with the behavior of the ram cache?
My solution to fix this is to remove the cache decorator.Update The event object is an instance of EventAccessor. The class provides the property url which construct the url via
self.context.absolute_url()
. Perhaps this is the problem. See comment in Traversable I will fix it in the EventAccessor.