Forums Cache Problem - Ez Crew please help.

Author Message

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 ez publish 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

John Smith

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:39:24
Script start
Timing: Jan 31 2025 00:39:24
Module start 'layout'
Timing: Jan 31 2025 00:39:24
Module start 'content'
Timing: Jan 31 2025 00:39:24
Module end 'content'
Timing: Jan 31 2025 00:39:24
Script end

Main resources:

Total runtime0.0186 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.2578151.2266
Module start 'layout' 0.00420.0028 739.4844220.7031
Module start 'content' 0.00700.0103 960.18751,001.7891
Module end 'content' 0.01730.0013 1,961.976633.9922
Script end 0.0186  1,995.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.0774140.0002
Check MTime0.00095.0857140.0001
Mysql Total
Database connection0.00063.164710.0006
Mysqli_queries0.00179.202030.0006
Looping result0.00000.038410.0000
Template Total0.00105.210.0010
Template load0.00073.814010.0007
Template processing0.00031.412610.0003
Override
Cache load0.00052.546110.0005
General
dbfile0.00021.156580.0000
String conversion0.00000.026940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs