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

eZ debug

Timing: Jan 18 2025 19:36:56
Script start
Timing: Jan 18 2025 19:36:56
Module start 'content'
Timing: Jan 18 2025 19:36:56
Module end 'content'
Timing: Jan 18 2025 19:36:56
Script end

Main resources:

Total runtime0.1450 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7031180.8438
Module start 'content' 0.00580.0050 768.546997.9766
Module end 'content' 0.01080.1341 866.5234526.1250
Script end 0.1449  1,392.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.3696200.0002
Check MTime0.00130.9244200.0001
Mysql Total
Database connection0.00060.428910.0006
Mysqli_queries0.102770.80271410.0007
Looping result0.00120.85381390.0000
Template Total0.133692.110.1336
Template load0.00090.628210.0009
Template processing0.132791.472010.1327
Override
Cache load0.00070.460510.0007
Sytem overhead
Fetch class attribute can translate value0.00050.341310.0005
XML
Image XML parsing0.00020.120010.0002
General
dbfile0.00191.3279200.0001
String conversion0.00000.004330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs