Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14901494979858
[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.056410074234009
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Beverly%2C+Farms%2C+MA&radius=10&search_limit=15
[execution_time] => 7.0867049694061
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Beverly' AND merch_region='Farms'
[execution_time] => 0.010352849960327
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MA/cities/Beverly/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=3707b434dae0ed1ca83f51d428a5f79d&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Beverly'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369323482'
[execution_time] => 0.00046491622924805
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Beverly',
'MA',
'United States',
'1369327082',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369327082', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.11896085739136
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Beverly'
AND region = 'MA'
AND country = 'United States'
AND expires > '1369323482'
[execution_time] => 0.022116899490356
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Beverly',
'MA',
'United States',
'1369327082',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"03:38 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1012\", \"temp_C\": \"16\", \"temp_F\": \"61\", \"visibility\": \"3\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Beverly, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.3\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"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\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"32.5\", \"tempMaxC\": \"17\", \"tempMaxF\": \"62\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"29.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"56\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"302\", \"weatherDesc\": [ {\"value\": \"Moderate rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0018_cloudy_with_heavy_rain.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"13.0\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"308\", \"winddirection\": \"NW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369327082', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"03:38 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1012\", \"temp_C\": \"16\", \"temp_F\": \"61\", \"visibility\": \"3\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Beverly, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.3\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"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\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"32.5\", \"tempMaxC\": \"17\", \"tempMaxF\": \"62\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"29.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"56\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"302\", \"weatherDesc\": [ {\"value\": \"Moderate rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0018_cloudy_with_heavy_rain.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"13.0\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"308\", \"winddirection\": \"NW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" } ] }}'
[execution_time] => 0.062897920608521
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(42.564629) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-70.810738) ) + sin( radians(42.564629) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.015235900878906
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '162713' ORDER BY item_per_off
[execution_time] => 0.0075070858001709
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259677' ORDER BY item_per_off
[execution_time] => 0.012439966201782
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '127332' ORDER BY item_per_off
[execution_time] => 0.011094093322754
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '130636' ORDER BY item_per_off
[execution_time] => 0.010989904403687
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '137485' ORDER BY item_per_off
[execution_time] => 0.012382030487061
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '131463' ORDER BY item_per_off
[execution_time] => 0.0082440376281738
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160165' ORDER BY item_per_off
[execution_time] => 0.012523174285889
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '258602' ORDER BY item_per_off
[execution_time] => 0.013514995574951
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122762' ORDER BY item_per_off
[execution_time] => 0.012302875518799
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309069' ORDER BY item_per_off
[execution_time] => 0.019447088241577
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338681' ORDER BY item_per_off
[execution_time] => 0.013876914978027
)
)
)
)