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.