Forums / General / Forums Cache Problem - Ez Crew please help.
John Smith
Wednesday 01 February 2006 1:25:10 am
hi there,
I have created two forum topics, one for staff and another for students on my website. Staff can edit/post in both forums, but students can only edit/post in students forum topcis.
There is a big cache problem when one user log out and another log in.
Ez Crew Please help.
I am using Exponential 3.6.1.
Cheers
John
Kristof Coomans
Wednesday 01 February 2006 1:33:48 am
What exactly do you mean with:"There is a big cache problem when one user log out and another log in." ?
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Wednesday 01 February 2006 1:45:30 am
Thanks for your quick reply.
Let me explain you.
In my case, After logging, staff members can edit/post both forum topics, one for students and another for staff member. On the other end Students can only see both topics but only post/edit students topics.
First I logged in as staff members, I can see "New Reply" and "Keep me Updated" buttons and can edit/post both the forum topics which is right according to the roles ans permission which i have set. Now I logged out, and logged in as student user, again I can see "New Reply" and "Keep me Updated" button on the forum topics related to staff, which is wrong.
Then if i clear the cache, it disappears from the staff forum topics.
So this means I have clear cache everytime I logged out from the forums.
Hope this can help.
Gabriel Ambuehl
Wednesday 01 February 2006 2:33:43 am
Solution: Wrap the forum posts in a cache block that depends on the user.
Visit http://triligon.org
Vjeran Vlahovic
Wednesday 31 May 2006 8:09:40 am
This problem was posted as a bug some time ago by Zinn but it was closed, so I sent it again today. ( http://ez.no/community/bugs/forum_edit_button_is_cached )
I supose viewcache should be disabled with {set-block scope=global variable=cache_ttl}0{/set-block} and cache-block should be used in full/forum_topic.tpl.
http://www.netgen.hr/eng