Array
(
[0] => Array
(
[0] => template
[1] => mar2013
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.1817479133606
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT DISTINCT merch_region, merch_locality, merch_country, merch_id FROM merchants_local ORDER BY merch_region, merch_locality
[execution_time] => 0.07889986038208
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Columbia%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 0.85385298728943
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Columbia' AND merch_region='PA'
[execution_time] => 0.011516094207764
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Columbia/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=c2e9326c4895a03434004214ad846676&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Columbia'
AND region = 'PA'
AND country = 'US'
AND expires > '1371727662'
[execution_time] => 0.00041985511779785
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Columbia',
'PA',
'US',
'1371731262',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371731262', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.050352096557617
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Columbia'
AND region = 'PA'
AND country = 'US'
AND expires > '1371727662'
[execution_time] => 0.00058102607727051
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Columbia',
'PA',
'US',
'1371731262',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"82\", \"observation_time\": \"11:27 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1023\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"14\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Columbia, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"192\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371731262', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"82\", \"observation_time\": \"11:27 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1023\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"14\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Columbia, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"192\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
[execution_time] => 0.14559006690979
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.03336) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-76.500092) ) + sin( radians(40.03336) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.036375999450684
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '213611' ORDER BY item_per_off
[execution_time] => 0.0096559524536133
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '257702' ORDER BY item_per_off
[execution_time] => 0.008936882019043
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '128454' ORDER BY item_per_off
[execution_time] => 0.0089361667633057
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '311814' ORDER BY item_per_off
[execution_time] => 0.013535976409912
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312530' ORDER BY item_per_off
[execution_time] => 0.0089869499206543
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314482' ORDER BY item_per_off
[execution_time] => 0.0089359283447266
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165219' ORDER BY item_per_off
[execution_time] => 0.0089380741119385
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262153' ORDER BY item_per_off
[execution_time] => 0.0089538097381592
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '330281' ORDER BY item_per_off
[execution_time] => 0.0089418888092041
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '167001' ORDER BY item_per_off
[execution_time] => 0.0089929103851318
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '167264' ORDER BY item_per_off
[execution_time] => 0.0092141628265381
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168020' ORDER BY item_per_off
[execution_time] => 0.0089359283447266
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '170098' ORDER BY item_per_off
[execution_time] => 0.0089399814605713
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315176' ORDER BY item_per_off
[execution_time] => 0.0089459419250488
)
)
)
)