Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.1394100189209
[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.052277803421021
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=South%2C+Weymouth%2C+MA&radius=10&search_limit=15
[execution_time] => 8.4067711830139
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='South' AND merch_region='Weymouth'
[execution_time] => 0.011592864990234
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MA/cities/South%20Weymouth/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=25c493120e8cff215e8a20ad6c18b146&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'South Weymouth'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369114425'
[execution_time] => 0.00051379203796387
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'South Weymouth',
'MA',
'United States',
'1369118025',
''
)
ON DUPLICATE KEY UPDATE expires = '1369118025', data = ''
[execution_time] => 0.055248975753784
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'South Weymouth'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369114425'
[execution_time] => 0.00061798095703125
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'South Weymouth',
'MA',
'United States',
'1369118025',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"100\", \"observation_time\": \"05:33 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1015\", \"temp_C\": \"16\", \"temp_F\": \"61\", \"visibility\": \"14\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"South Weymouth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.8\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"124\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"1.6\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.9\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"5.2\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369118025', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"100\", \"observation_time\": \"05:33 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1015\", \"temp_C\": \"16\", \"temp_F\": \"61\", \"visibility\": \"14\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"South Weymouth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.8\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"124\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"1.6\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.9\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"5.2\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" } ] }}'
[execution_time] => 0.036248922348022
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(42.174648) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-70.949822) ) + sin( radians(42.174648) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.018564224243164
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '261271' ORDER BY item_per_off
[execution_time] => 0.0079779624938965
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334238' ORDER BY item_per_off
[execution_time] => 0.0119469165802
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '153694' ORDER BY item_per_off
[execution_time] => 0.010830879211426
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338461' ORDER BY item_per_off
[execution_time] => 0.013050079345703
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165731' ORDER BY item_per_off
[execution_time] => 0.013545989990234
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262902' ORDER BY item_per_off
[execution_time] => 0.013232946395874
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '125556' ORDER BY item_per_off
[execution_time] => 0.011298894882202
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '129973' ORDER BY item_per_off
[execution_time] => 0.015285968780518
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159770' ORDER BY item_per_off
[execution_time] => 0.010543823242188
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '72710' ORDER BY item_per_off
[execution_time] => 0.012147903442383
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '282423' ORDER BY item_per_off
[execution_time] => 0.013159036636353
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314743' ORDER BY item_per_off
[execution_time] => 0.012487888336182
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165704' ORDER BY item_per_off
[execution_time] => 0.013395071029663
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337082' ORDER BY item_per_off
[execution_time] => 0.012381076812744
)
)
)
)