Jump to content

PS Frontend and Admin SLOW


Recommended Posts

I'm running PS 1.5.6.2 and it the frontend and backend are both running very slow.

 

I turned define('_PS_DEBUG_PROFILING_', false) to define('_PS_DEBUG_PROFILING_', true).

 

I then went into the backoffice and copied the following below.

 

Also, should I be getting a report at the bottom of each page in the frontend as well? Because if I go to my site (primzie.com), there's nothing at the bottom of the pages.

 

Thanks.

 

Ron

 

 

 

___________________________________________________________________

 

Load time: 1.12s
You'd better run your shop on a toaster
  • config: 178ms
  • constructor: 0ms
  • init: 14ms
  • checkAccess: 0ms
  • setMedia: 0ms
  • postProcess: 0ms
  • initHeader: 0ms
  • initContent: 920ms
  • initFooter: 0ms
  • display: 8ms
Hook processing: 12ms / 0.25 Mb
  • moduleRoutes: 12ms / 0.25 Mb
  • actionDispatcher: 0ms / 0 Mb
  • displayBackOfficeTop: 0ms / 0 Mb
Memory peak usage: 14.7 Mb
  • config: 11.85 Mb (14.1 Mb)
  • constructor: 0 Mb (14.1 Mb)
  • init: 0.33 Mb (14.1 Mb)
  • checkAccess: 0 Mb (14.1 Mb)
  • setMedia: 0 Mb (14.1 Mb)
  • postProcess: 0 Mb (14.1 Mb)
  • initHeader: 0 Mb (14.1 Mb)
  • initContent: 1.29 Mb (14.1 Mb)
  • initFooter: 0 Mb (14.1 Mb)
  • display: 0.47 Mb (14.7 Mb)


Total cache size (in Cache class): 0.28 Mb
DB type: DbPDO 
SQL Queries: 24 queries 
Time spent querying: 19ms
Included files: 66
Size of included files: 1.41 Mb
Globals (> 1 Ko only): 1167 Ko
  • _LANGADM ≈ 1122.2 Ko
  • HTTP_SERVER_VARS ≈ 8.8 Ko
  • _SERVER ≈ 8.8 Ko
  • _ENV ≈ 7.5 Ko
  • HTTP_ENV_VARS ≈ 7.5 Ko
  • _REQUEST ≈ 2.9 Ko
  • HTTP_COOKIE_VARS ≈ 2.6 Ko
  • _COOKIE ≈ 2.3 Ko
Stopwatch (with SQL_NO_CACHE) (total = 24)3.779 ms SELECT SQL_NO_CACHE module FROM ps_tab_module_preference WHERE `id_tab` = 6 AND `id_employee` = 0
in /home/dellas5/public_html/classes/Tab.php:534
1 row browsed3.457 ms SELECT SQL_NO_CACHE c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop FROM `ps_configuration` c LEFT JOIN `ps_configuration_lang` cl ON (c.id_configuration = cl.id_configuration)
in /home/dellas5/public_html/classes/Configuration.php:116
538 rows browsed1.874 ms SELECT SQL_NO_CACHE h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` FROM `ps_module` m INNER JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module` INNER JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook` WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN (1)) = 1) AND (h.name != "displayPayment") AND (hm.id_shop = 1) ORDER BY hm.`position`
in /home/dellas5/public_html/classes/Hook.php:339
USING FILESORT - 87 rows browsed1.782 ms SELECT SQL_NO_CACHE * FROM `ps_quick_access` qa LEFT JOIN `ps_quick_access_lang` qal ON (qa.`id_quick_access` = qal.`id_quick_access` AND qal.`id_lang` = 1) ORDER BY `name` ASC
in /home/dellas5/public_html/classes/QuickAccess.php:65
USING FILESORT - 25 rows browsed0.747 ms SELECT SQL_NO_CACHE * FROM `ps_tab` t LEFT JOIN `ps_tab_lang` tl ON (t.`id_tab` = tl.`id_tab` AND tl.`id_lang` = 1) ORDER BY t.`position` ASC
in /home/dellas5/public_html/classes/Tab.php:246
USING FILESORT - 106 rows browsed0.735 ms SELECT SQL_NO_CACHE * FROM `ps_access` a LEFT JOIN `ps_tab` t ON t.id_tab = a.id_tab WHERE `id_profile` = 0
in /home/dellas5/public_html/classes/Profile.php:143
1 row browsed0.67 ms SELECT SQL_NO_CACHE m.page, ml.url_rewrite, ml.id_lang FROM `ps_meta` m LEFT JOIN `ps_meta_lang` ml ON (m.id_meta = ml.id_meta AND ml.id_shop = 1 ) ORDER BY LENGTH(ml.url_rewrite) DESC
in /home/dellas5/public_html/classes/Dispatcher.php:426
USING FILESORT - 26 rows browsed0.567 ms SELECT SQL_NO_CACHE gs.*, s.*, gs.name AS group_name, s.name AS shop_name, s.active, su.domain, su.domain_ssl, su.physical_uri, su.virtual_uri FROM ps_shop_group gs LEFT JOIN ps_shop s ON s.id_shop_group = gs.id_shop_group LEFT JOIN ps_shop_url su ON s.id_shop = su.id_shop AND su.main = 1 WHERE s.deleted = 0 AND gs.deleted = 0 ORDER BY gs.name, s.name
in /home/dellas5/public_html/classes/shop/Shop.php:622
USING FILESORT - 1 row browsed0.474 ms SELECT SQL_NO_CACHE `id_parent` FROM `ps_tab` WHERE LOWER(class_name) = 'adminlogin' LIMIT 1
in /home/dellas5/public_html/classes/Tab.php:178
106 rows browsed0.45 ms SELECT SQL_NO_CACHE * FROM `ps_tab_lang` WHERE `id_tab` = 6
in /home/dellas5/public_html/classes/ObjectModel.php:219
1 row browsed0.436 ms SELECT SQL_NO_CACHE COUNT(DISTINCT l.id_lang) FROM `ps_lang` l JOIN ps_lang_shop lang_shop ON (lang_shop.id_lang = l.id_lang AND lang_shop.id_shop = 1) WHERE l.`active` = 1 LIMIT 1
in /home/dellas5/public_html/classes/Language.php:805
1 row browsed0.424 ms SELECT SQL_NO_CACHE * FROM `ps_lang` a LEFT JOIN `ps_lang_shop` `c` ON a.id_lang = c.id_lang AND c.id_shop = 1 WHERE (a.id_lang = 1) LIMIT 1
in /home/dellas5/public_html/classes/ObjectModel.php:212
1 row browsed0.401 ms SELECT SQL_NO_CACHE * FROM `ps_currency` a LEFT JOIN `ps_currency_shop` `c` ON a.id_currency = c.id_currency AND c.id_shop = 1 WHERE (a.id_currency = 1) LIMIT 1
in /home/dellas5/public_html/classes/ObjectModel.php:212
1 row browsed0.37 ms SELECT SQL_NO_CACHE t.`class_name`, t.`module` FROM `ps_tab` t WHERE t.`module` IS NOT NULL AND t.`module` != ""
in /home/dellas5/public_html/classes/Tab.php:222
106 rows browsed0.352 ms SELECT SQL_NO_CACHE l.*, ls.`id_shop` FROM `ps_lang` l LEFT JOIN `ps_lang_shop` ls ON (l.id_lang = ls.id_lang)
in /home/dellas5/public_html/classes/Language.php:698
1 row browsed0.33 ms SELECT SQL_NO_CACHE s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps_shop_url su LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'www.primzie.com' OR su.domain_ssl = 'www.primzie.com') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
in /home/dellas5/public_html/classes/shop/Shop.php:320
USING FILESORT - 1 row browsed0.326 ms SELECT SQL_NO_CACHE id_tab, class_name FROM `ps_tab`
in /home/dellas5/public_html/classes/Tab.php:276
106 rows browsed0.296 ms SELECT SQL_NO_CACHE value FROM ps_configuration WHERE name= 'PS_CACHEFS_DIRECTORY_DEPTH' LIMIT 1
in /home/dellas5/public_html/classes/cache/CacheFs.php:36
1 row browsed0.27 ms SELECT SQL_NO_CACHE domain, domain_ssl FROM ps_shop_url WHERE main = 1 AND id_shop = 1 LIMIT 1
in /home/dellas5/public_html/classes/shop/ShopUrl.php:154
1 row browsed0.258 ms SELECT SQL_NO_CACHE * FROM `ps_country` a LEFT JOIN `ps_country_lang` `b` ON a.id_country = b.id_country AND b.id_lang = 1 LEFT JOIN `ps_country_shop` `c` ON a.id_country = c.id_country AND c.id_shop = 1 WHERE (a.id_country = 21) LIMIT 1
in /home/dellas5/public_html/classes/ObjectModel.php:212
1 row browsed0.253 ms SELECT SQL_NO_CACHE su.physical_uri, su.virtual_uri, su.domain, su.domain_ssl, t.id_theme, t.name, t.directory FROM ps_shop s LEFT JOIN ps_shop_url su ON (s.id_shop = su.id_shop) LEFT JOIN ps_theme t ON (t.id_theme = s.id_theme) WHERE s.id_shop = 1 AND s.active = 1 AND s.deleted = 0 AND su.main = 1 LIMIT 1
in /home/dellas5/public_html/classes/shop/Shop.php:199
1 row browsed0.245 ms SELECT SQL_NO_CACHE * FROM `ps_hook_alias`
in /home/dellas5/public_html/classes/Hook.php:182
86 rows browsed0.189 ms SELECT SQL_NO_CACHE * FROM `ps_tab` a WHERE (a.id_tab = 6) LIMIT 1
in /home/dellas5/public_html/classes/ObjectModel.php:212
1 row browsed0.187 ms SELECT SQL_NO_CACHE * FROM `ps_shop` a WHERE (a.id_shop = 1) LIMIT 1
in /home/dellas5/public_html/classes/ObjectModel.php:212
1 row browsed
Tables stress6 tab4 shop_url4 shop3 lang3 lang_shop2 tab_lang2 configuration1 access1 meta_lang1 quick_access1 tab_module_preference1 quick_access_lang1 meta1 currency_shop1 currency1 hook_module1 country_lang1 country1 configuration_lang1 theme1 country_shop1 shop_group1 module_shop1 hook1 module1 hook_alias
Included files1 adminx0109a/index.php
2 adminx0109a/../config/config.inc.php
3 config/config.inc.php
4 config/defines.inc.php
5 config/settings.inc.php
6 config/autoload.php
7 config/alias.php
8 classes/Autoload.php
9 cache/class_index.php
10 tools/profiling/Controller.php
11 classes/controller/Controller.php
12 tools/profiling/ObjectModel.php
13 classes/ObjectModel.php
14 tools/profiling/Hook.php
15 classes/Hook.php
16 tools/profiling/Db.php
17 classes/db/Db.php
18 tools/profiling/Tools.php
19 classes/Tools.php
20 classes/Context.php
21 classes/shop/Shop.php
22 classes/db/DbPDO.php
23 classes/cache/Cache.php
24 classes/cache/CacheFs.php
25 classes/Validate.php
26 classes/db/DbQuery.php
27 config/defines_uri.inc.php
28 classes/Configuration.php
29 classes/Language.php
30 classes/Country.php
31 classes/Collection.php
32 classes/Cookie.php
33 classes/Rijndael.php
34 classes/Employee.php
35 classes/Link.php
36 classes/shop/ShopUrl.php
37 config/smarty.config.inc.php
38 tools/smarty/Smarty.class.php
39 tools/smarty/sysplugins/smarty_internal_data.php
40 tools/smarty/sysplugins/smarty_internal_templatebase.php
41 tools/smarty/sysplugins/smarty_internal_template.php
42 tools/smarty/sysplugins/smarty_resource.php
43 tools/smarty/sysplugins/smarty_internal_resource_file.php
44 tools/smarty/sysplugins/smarty_cacheresource.php
45 tools/smarty/sysplugins/smarty_internal_cacheresource_file.php
46 config/smartyadmin.config.inc.php
47 adminx0109a/functions.php
48 ./images.inc.php
49 classes/Dispatcher.php
50 classes/Tab.php
51 controllers/admin/AdminLoginController.php
52 classes/controller/AdminController.php
53 classes/Translate.php
54 translations/en/admin.php
55 classes/Profile.php
56 classes/Currency.php
57 classes/Media.php
58 classes/QuickAccess.php
59 classes/module/Module.php
60 cache/smarty/compile/ab/14/75/ab1475920163a6deacc3167978595c4f5191956e.file.content.tpl.php
61 tools/smarty/plugins/modifier.escape.php
62 tools/smarty/plugins/modifier.date_format.php
63 tools/smarty/plugins/shared.make_timestamp.php
64 cache/smarty/compile/ed/f6/a7/edf6a73267dec527214ca90474017f648d79392f.file.layout.tpl.php
65 cache/smarty/compile/de/ac/e7/deace7a9465a4ac913a81b6197a900e6e4b5eea4.file.header.tpl.php
66 cache/smarty/compile/55/fb/78/55fb78bc523eff1937408c8ffed4bbdc81e33359.file.footer.tpl.php

 

Link to comment
Share on other sites

×
×
  • Create New...