Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14221715927124
[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.054379940032959
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Somerset%2C+MA%2C+US&radius=10&search_limit=15
[execution_time] => 4.3177561759949
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Somerset' AND merch_region='MA'
[execution_time] => 0.0088191032409668
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MA/cities/Somerset/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=4ddb3b676cc6cf0fc8400949b0a3c085&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Somerset'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369455741'
[execution_time] => 0.12066102027893
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Somerset',
'MA',
'United States',
'1369459341',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369459341', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.10757899284363
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Somerset'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369455741'
[execution_time] => 0.00040483474731445
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Somerset',
'MA',
'United States',
'1369459341',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"04:22 AM\", \"precipMM\": \"2.2\", \"pressure\": \"1009\", \"temp_C\": \"12\", \"temp_F\": \"54\", \"visibility\": \"10\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"345\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Somerset, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"13.4\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"296\", \"weatherDesc\": [ {\"value\": \"Light rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"288\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"25\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"280\", \"winddirection\": \"W\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369459341', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"04:22 AM\", \"precipMM\": \"2.2\", \"pressure\": \"1009\", \"temp_C\": \"12\", \"temp_F\": \"54\", \"visibility\": \"10\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"345\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Somerset, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"13.4\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"296\", \"weatherDesc\": [ {\"value\": \"Light rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"288\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"25\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"280\", \"winddirection\": \"W\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
[execution_time] => 0.082548856735229
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.748131) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-71.144257) ) + sin( radians(41.748131) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.015990972518921
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334685' ORDER BY item_per_off
[execution_time] => 0.0094680786132812
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '136153' ORDER BY item_per_off
[execution_time] => 0.011770963668823
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333929' ORDER BY item_per_off
[execution_time] => 0.011223077774048
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '324491' ORDER BY item_per_off
[execution_time] => 0.013811826705933
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334336' ORDER BY item_per_off
[execution_time] => 0.013735055923462
)
)
)
)