Forums / General / Forums Cache Problem - Ez Crew please help.

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

eZ debug

Timing: Jan 18 2025 11:13:02
Script start
Timing: Jan 18 2025 11:13:02
Module start 'content'
Timing: Jan 18 2025 11:13:03
Module end 'content'
Timing: Jan 18 2025 11:13:03
Script end

Main resources:

Total runtime0.8618 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.8203180.8203
Module start 'content' 0.00780.7277 768.6406633.3516
Module end 'content' 0.73550.1263 1,401.9922337.0781
Script end 0.8617  1,739.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5006210.0002
Check MTime0.00150.1727210.0001
Mysql Total
Database connection0.00100.119410.0010
Mysqli_queries0.786291.23042040.0039
Looping result0.00290.34002020.0000
Template Total0.833396.720.4167
Template load0.00180.208620.0009
Template processing0.831596.484820.4158
Template load and register function0.00020.018110.0002
states
state_id_array0.00070.082410.0007
state_identifier_array0.00080.094820.0004
Override
Cache load0.00150.1698280.0001
Sytem overhead
Fetch class attribute can translate value0.00180.209250.0004
Fetch class attribute name0.00120.135070.0002
XML
Image XML parsing0.00150.175550.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00360.4180340.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs