Archive of: Discount

Time Δ Debug Message - Perch Runway 3.1.1
0.08690 [50] SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate, pr.routeOrder, s.settingValue AS siteOffline FROM perch3_pages p LEFT JOIN perch3_page_routes pr ON p.pageID=pr.pageID LEFT JOIN perch3_settings s ON s.settingID='siteOffline' UNION SELECT NULL AS pagePath, pr2.routePattern, pr2.routeRegExp, pr2.templatePath AS pageTemplate, pr2.routeOrder, NULL AS siteOffline FROM perch3_page_routes pr2 WHERE templateID!=0 ORDER BY routeOrder ASC, pagePath ASC
0.0930.0061Matched route: news/tag/[slug:tag]
0.09320.0002Using master page: /templates/pages/blog/archive.php
0.09320Page arguments:
Array
(
    [0] => /news/tag/discount
    [tag] => discount
    [1] => discount
)
0.09420.001 [67] SELECT DISTINCT settingID, settingValue FROM perch3_settings WHERE userID=0
0.10240.0082 [1] SELECT * FROM perch3_pages WHERE pagePath='/news/archive' LIMIT 1
0.11960.0172 [1] SELECT locationID FROM perch3_shop_tax_locations WHERE locationIsHome=1 LIMIT 1
0.12020.0005INSERT INTO perch3_shop_cart(memberID,locationID,currencyID,cartPricing,cartProperties) VALUES(NULL,'1',47,'standard','[]')
0.15410.0339 [1] SELECT * FROM perch3_shop_cart WHERE cartID=26086
0.15460.0005 [1] SELECT * FROM perch3_shop_cart WHERE cartID=26086
0.15550.0009 [nil] SELECT * FROM perch3_shop_sales WHERE saleFrom<='2018-11-21 04:37:00' AND saleTo>'2018-11-21 04:37:00' AND saleActive=1 AND saleDeleted IS NULL ORDER BY saleOrder ASC
0.15690.0014------------------------------ Calculating cart ------------------------------
0.1570.0001 [1] SELECT * FROM perch3_shop_cart WHERE cartID=26086
0.16190.0049 [1] SELECT * FROM perch3_shop_cart WHERE cartID=26086
0.16370.0018 [1] SELECT * FROM perch3_shop_tax_locations WHERE locationID=1 AND locationDeleted IS NULL LIMIT 1
0.16410.0004 [1] SELECT locationID FROM perch3_shop_tax_locations WHERE locationIsHome=1 LIMIT 1
0.16460.0005 [1] SELECT * FROM perch3_shop_tax_locations WHERE locationID=1 AND locationDeleted IS NULL LIMIT 1
0.16560.001 [1] SELECT * FROM perch3_shop_currencies WHERE currencyID=47 LIMIT 1
0.1660.0004 [1] SELECT COUNT(productID) AS product_count, SUM(itemQty) AS item_count FROM perch3_shop_cart_items WHERE cartID=26086
0.16640.0004Tax mode: inc
0.16680.0005 [nil] SELECT * FROM perch3_shop_cart_items WHERE cartID=26086 ORDER BY itemID ASC
0.16840.0016 [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch3_content_regions WHERE regionKey='Site Name' AND (regionPage='/news/archive' OR regionPage='*')
0.16890.0005 [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch3_content_index idx JOIN perch3_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch3_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=134 AND idx.itemRev=2)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval, regionID ORDER BY sortval ASC
0.1740.0051 [1] Using template: /templates/content/text.html
0.17730.0033Using template: /templates/pages/attributes/default.html
0.17780.0005Using sub-template: /templates/pages/attributes/seo.html
0.17810.0002Using sub-template: /templates/pages/attributes/facebook.html
0.17830.0002Using sub-template: /templates/pages/attributes/twitter.html
0.18240.0041 [1] SELECT setID FROM perch3_category_sets WHERE setSlug='products' LIMIT 1
0.1830.0006 [5] SELECT main.* FROM perch3_categories main WHERE 1=1 AND (catSlug NOT IN ('discounts', 'events', 'swimming-lessons')) AND setID=2 ORDER BY catTreePosition ASC
0.18440.0013 [5] Using template: /templates/categories/products/shop_nav_list.html
0.18480.0005Using sub-template: /templates/categories/title.html
0.18670.0018 [19] SELECT * FROM perch3_pages WHERE pageNew=0 AND pageHidden=0 ORDER BY pageTreePosition ASC
0.18740.0008 [1] SELECT pageTreePosition FROM perch3_pages WHERE pagePath='/news/archive' LIMIT 1
0.18790.0005 [2] SELECT pageID FROM perch3_pages WHERE pageTreePosition IN ('000-007-002', '000-007', '000') ORDER BY pageTreePosition DESC
0.18860.0007Using template: /templates/navigation/navbar_list.html
0.18880.0003 [1] Using template: /templates/navigation/navbar_list.html
0.18920.0004Using sub-template: /templates/navigation/navbar_item.html
0.18950.0003Using sub-template: /templates/navigation/navbar_item.html
0.19050.001 [1] Using template: /templates/navigation/navbar_list.html
0.1910.0004Using sub-template: /templates/navigation/navbar_item.html
0.19120.0002Using sub-template: /templates/navigation/navbar_item.html
0.1920.0008 [1] Using template: /templates/navigation/navbar_list.html
0.19240.0004Using sub-template: /templates/navigation/navbar_item.html
0.19260.0003Using sub-template: /templates/navigation/navbar_item.html
0.19330.0007 [2] Using template: /templates/navigation/navbar_list.html
0.19380.0005Using sub-template: /templates/navigation/navbar_item.html
0.19410.0003 [9] Using sub-template: /templates/navigation/navbar_item.html
0.19660.0025Using sub-template: /templates/navigation/navbar_item.html
0.19710.0005Using sub-template: /templates/navigation/navbar_item.html
0.20620.0091Using template: /templates/search/form_in_menu.html
0.20960.0034 [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch3_content_regions WHERE regionKey='Profile' AND (regionPage='/news/archive' OR regionPage='*')
0.21010.0005 [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch3_content_index idx JOIN perch3_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch3_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=156 AND idx.itemRev=3)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval, regionID ORDER BY sortval ASC
0.2240.0139 [1] Using template: /templates/content/profile/social_white_icons.html
0.22510.001 [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch3_content_index idx JOIN perch3_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch3_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=156 AND idx.itemRev=3)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval, regionID ORDER BY sortval ASC
0.23550.0104 [1] Using template: /templates/content/profile/phone.html
0.2370.0015 [1] SELECT pageTreePosition FROM perch3_pages WHERE pagePath='/news/archive' OR pageSortPath='/news/archive' LIMIT 1
0.23760.0006 [2] SELECT * FROM perch3_pages WHERE pageNew=0 AND pageTreePosition IN ('000-007-002', '000-007', '000') ORDER BY pageTreePosition
0.23840.0008 [2] Using template: /templates/navigation/breadcrumbs.html
0.24150.0031 [1] SELECT * FROM perch3_blog_tags WHERE tagSlug='discount' LIMIT 1
0.24410.0026 [1] SELECT SQL_CALC_FOUND_ROWS DISTINCT tbl.* FROM ( SELECT idx.itemID, main.*, idx2.indexValue as sortval FROM perch3_blog_index idx JOIN perch3_blog_posts main ON idx.itemID=main.postID AND idx.itemKey='postID' JOIN perch3_blog_index idx2 ON idx.itemID=idx2.itemID AND idx.itemKey='postID' AND idx2.indexKey='postDateTime' WHERE 1=1 AND idx.itemID=idx2.itemID AND idx.itemKey=idx2.itemKey GROUP BY idx.itemID, idx2.indexValue, postID ) as tbl LEFT JOIN perch3_blog_posts_to_tags p2t ON tbl.postID=p2t.postID LEFT JOIN perch3_blog_tags t ON p2t.tagID=t.tagID WHERE ( tagSlug IN ('discount') AND postStatus='Published' AND postDateTime<='2018-11-21 04:37:00' ) GROUP BY itemID, sortval ORDER BY sortval DESC LIMIT 0, 10
0.25690.0128 [1] SELECT FOUND_ROWS() AS `count`
0.26080.0039 [1] Using template: /templates/blog/post_in_list.html
0.26250.0017 [4] SELECT * FROM perch3_blog_authors ORDER BY authorFamilyName, authorGivenName ASC
0.26540.003 [1] SELECT * FROM perch3_blog_sections ORDER BY sectionTitle ASC
0.26730.0018 [1] SELECT * FROM perch3_blogs ORDER BY blogTitle ASC
0.26870.0015 [1] SELECT * FROM perch3_categories ORDER BY catTreePosition ASC
0.27270.004 [1] SELECT setID FROM perch3_category_sets WHERE setSlug='blog' LIMIT 1
0.2730.0003 [1] SELECT main.* , COALESCE(cc.countValue,0) AS `count.blog.post` FROM perch3_categories main LEFT OUTER JOIN perch3_category_counts cc ON cc.catID=main.catID WHERE 1=1 AND setID=1 AND (cc.countType='blog.post' OR cc.countType IS NULL) AND cc.countValue > 0 ORDER BY catTreePosition ASC
0.27360.0006 [1] Using template: /templates/blog/category_link.html
0.27450.0009 [1] SELECT * FROM perch3_blogs WHERE blogSlug='blog' LIMIT 1
0.2750.0005 [1] SELECT t.tagTitle, t.tagSlug, COUNT(p2t.postID) AS qty FROM perch3_blog_tags t, perch3_blog_posts_to_tags p2t, perch3_blog_posts p WHERE p2t.tagID=t.tagID AND p2t.postID=p.postID AND p.postStatus='Published' AND p.postDateTime<='2018-11-21 04:37:00' AND p.blogID=1 GROUP BY t.tagID ORDER BY t.tagTitle ASC
0.27560.0006 [1] Using template: /templates/blog/tag_link.html
0.27640.0009 [2] SELECT year(postDateTime) as year, COUNT(*) AS year_qty FROM perch3_blog_posts WHERE postStatus='Published' AND postDateTime<='2018-11-21 04:37:00' GROUP BY year ORDER BY year DESC
0.27720.0007Using template: /templates/blog/months_month_link.html
0.27730.0001 [1] SELECT DISTINCT year(postDateTime) AS year, month(postDateTime) AS month, CONCAT(year(postDateTime),"-",month(postDateTime),"-01") AS grouped_date, COUNT(*) AS month_qty FROM perch3_blog_posts p WHERE year(postDateTime) = '2018' AND p.postStatus='Published' AND p.postDateTime<='2018-11-21 04:37:00' GROUP BY year, month, grouped_date ORDER BY month DESC
0.27870.0015 [2] SELECT DISTINCT year(postDateTime) AS year, month(postDateTime) AS month, CONCAT(year(postDateTime),"-",month(postDateTime),"-01") AS grouped_date, COUNT(*) AS month_qty FROM perch3_blog_posts p WHERE year(postDateTime) = '2017' AND p.postStatus='Published' AND p.postDateTime<='2018-11-21 04:37:00' GROUP BY year, month, grouped_date ORDER BY month DESC
0.28050.0018 [2] Using template: /templates/blog/months_year_link.html
0.28330.0028Request time: 0.2832
0.28330Process time: 0.2677
0.28330Memory: 8.0836