Forums / Developer / Basket and template view cache!

Basket and template view cache!

Author Message

Jorge estévez

Thursday 08 January 2009 7:18:42 am

Hello!

I have activated my "template cache view" for a site and all works well, I have been doing tests all over the site.

I was adding products to the shopping cart and once I go to the shp/basket view items are not displayed. I cleaned the cache (templates cache) and the items added apeared again... still "template cache view" is activated.

It acts as if basket template is cached, I thisk this should be as this is so dynamic it should always be parsed...

Any idea on what to do?

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Thursday 08 January 2009 7:34:12 am

Yes: Basket.tpl is cached (and needs clearing of template view cache), I continued with the shoping process and other pages showed all items (userregister.tpl, confirmorder.tpl and orderview.tpl are working ok)

I added more items to the basket (as a new list of items) and basket.tpl continued showing previous items added (and not the new one)... when I cleared the cache old items went away and the new one appeared.

opps I must be missing something!

Using ezp 3.10 version!

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Thursday 08 January 2009 7:45:04 am

Hi again,

Since I have modifyed the basket.tpl and could have made a mistake I went back to the old basket.tpl to verify if some of my modifications could have produced some kind of error.

It still does not refresh the content of the basket, so I am stuck here.

Any ideas?

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Thursday 08 January 2009 8:25:14 am

Hi!

"template cache view" off --> all works well

But my site is slow, of course!

-----------------------------------------

Works fine for:

View Caching -enabled
Template Cache -disabled
Template Compile-disabled

if I set up the following:

View Caching -enabled
Template Cache -enabled
Template Compile-disabled

then arises the basket.tpl - refresh problem!

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Thursday 08 January 2009 10:11:59 am

The reason why no one is answering is probably because your issue doesn't make sense. Unless you have a custom template operator that is hard coding the result of the basket or you have a cache block around your content that caches the result of the page without taking users basket into account(and you shouldn't have cache blocks around $module_result.content as it is already cached by content view cache, and lots of view's will not work properly if you do this).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom