problem with the cache in a vote

Author Message

Eric Tshiunza

Monday 04 May 2009 12:15:04 am

when I do vote, I want the result is immediate but I have the result that when I empty the cache (knowing that to vote you must be logged in) I use an extension for voting StarRating

Jean-Luc Nguyen

Tuesday 05 May 2009 1:38:21 am

I suggest you add this line on top of your template voting file:

{set-block scope=root variable=cache_ttl}0{/set-block}

It disables the cache block system so you may see immediately the vote with AJAX.

http://www.acidre.com

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 04:29:09
Script start
Timing: Jan 31 2025 04:29:09
Module start 'layout'
Timing: Jan 31 2025 04:29:09
Module start 'content'
Timing: Jan 31 2025 04:29:09
Module end 'content'
Timing: Jan 31 2025 04:29:09
Script end

Main resources:

Total runtime0.0169 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1406151.2109
Module start 'layout' 0.00690.0028 739.351636.6484
Module start 'content' 0.00970.0057 776.000090.1875
Module end 'content' 0.01540.0015 866.187529.9922
Script end 0.0169  896.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002916.8987140.0002
Check MTime0.00137.4522140.0001
Mysql Total
Database connection0.00074.294510.0007
Mysqli_queries0.003017.983230.0010
Looping result0.00000.076210.0000
Template Total0.00116.210.0011
Template load0.00084.607610.0008
Template processing0.00031.614810.0003
Override
Cache load0.00053.140810.0005
General
dbfile0.00127.267580.0002
String conversion0.00000.049440.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.0002 secs