Forums / Setup & design / Slow access to basket

Slow access to basket

Author Message

Jorge estévez

Thursday 18 June 2009 12:25:03 pm

I have activated template compile, view catching, template cache, and template cache.

Pages are really going fast, but the first time they are accessed they take a while to appear, any subsequent access to the same page (or other pages that have been visited before) work quite fast.

I think they are cached the first time I access the page . if this is true, how can I recreate cache for the whole site?

I have runned the eztc.php to compile all pages, but still works the same way.

Thanks

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

André R.

Thursday 18 June 2009 12:53:14 pm

Do you have lots of traffic? As in are all uncached views slow (that do not have view cache)? ( like content/edit, shop/*, user/* )

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

Jorge estévez

Thursday 18 June 2009 1:13:42 pm

No trafic at all, just developing the site offline.

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

Jorge estévez

Thursday 18 June 2009 1:29:00 pm

Thanks,

First I Clean the cache, compile all templates.

The problem is that pages are fast, once you access them previously.
Next time you navigate to pages already visited they behave very nice indeed.

It seems to me that once I access the page for the first time cache is generated for that page, so subsequent access to teh same page works very fast...

I recall seeing something like this in the past, there was some settings that cached all pages of the site (taking more time) or catching while navigating the site.

By the way I am using ez 3.10.1 if this should help somehow...

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

Jorge estévez

Thursday 18 June 2009 1:37:15 pm

Thanks,

First I had problems with the basket, When I added a product to the basket, the basket page did not updated the new product until I cleared the cache in the admin site.

I have two pagelayouts one for the products only and the other for other pages of the site (Includes the basket page).

So I commented {*cache-block keys=array( $uri_string, $basket_is_empty, $user_id )*} for the NON-products pagelayout, and the basket updated as it should, but the access is quite slow. The reason why I commented the

{cache-block keys=array( $uri_string, $basket_is_empty, $user_id )}

is that I really did not know why the basket was not updating my products at all, So I assume it had to do with some kind of cache, and as the only cache is at the pagelayout I gave it a try. It works but maybe I am doing something wrong.

thanks for your help.

Just saw http://ez.no/developer/forum/developer/cache_block_and_dynamic_pages/re_cache_block_and_dynamic_pages

Do not kow if this couls help, but it seems a workaround justa the same as my solution commenting the:

{cache-block keys=array( $uri_string, $basket_is_empty, $user_id )}

Of course catching other pages if the basket is not involved.

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