Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14057397842407
[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.053765058517456
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Bellevue%2C+NE%2C+US&radius=10&search_limit=15
[execution_time] => 6.1071259975433
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Bellevue' AND merch_region='NE'
[execution_time] => 0.007310152053833
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NE/cities/Bellevue/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=664420e68e7f13230871904f9dee8f7d&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Bellevue'
AND region = 'NE'
AND country = 'US'
AND expires > '1369430380'
[execution_time] => 0.00027704238891602
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Bellevue',
'NE',
'US',
'1369433980',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369433980', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.23629689216614
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Bellevue'
AND region = 'NE'
AND country = 'US'
AND expires > '1369430380'
[execution_time] => 0.00046396255493164
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Bellevue',
'NE',
'US',
'1369433980',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"43\", \"observation_time\": \"09:19 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1022\", \"temp_C\": \"22\", \"temp_F\": \"72\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" } ], \"request\": [ {\"query\": \"Bellevue, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"winddirection\": \"SE\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"5.8\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"10.5\", \"tempMaxC\": \"25\", \"tempMaxF\": \"76\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"356\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0010_heavy_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"25\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"12.6\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"200\", \"weatherDesc\": [ {\"value\": \"Thundery outbreaks in nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"178\", \"winddirection\": \"S\", \"windspeedKmph\": \"41\", \"windspeedMiles\": \"26\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369433980', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"43\", \"observation_time\": \"09:19 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1022\", \"temp_C\": \"22\", \"temp_F\": \"72\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" } ], \"request\": [ {\"query\": \"Bellevue, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"winddirection\": \"SE\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"5.8\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"10.5\", \"tempMaxC\": \"25\", \"tempMaxF\": \"76\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"356\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0010_heavy_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"25\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"12.6\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"200\", \"weatherDesc\": [ {\"value\": \"Thundery outbreaks in nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"178\", \"winddirection\": \"S\", \"windspeedKmph\": \"41\", \"windspeedMiles\": \"26\" } ] }}'
[execution_time] => 0.068329095840454
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.119952) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-95.946945) ) + sin( radians(41.119952) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.012996912002563
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335612' ORDER BY item_per_off
[execution_time] => 0.0076022148132324
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334788' ORDER BY item_per_off
[execution_time] => 0.012507915496826
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161496' ORDER BY item_per_off
[execution_time] => 0.016960144042969
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135530' ORDER BY item_per_off
[execution_time] => 0.012577056884766
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154785' ORDER BY item_per_off
[execution_time] => 0.01423716545105
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334316' ORDER BY item_per_off
[execution_time] => 0.016321897506714
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338238' ORDER BY item_per_off
[execution_time] => 0.01354193687439
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164639' ORDER BY item_per_off
[execution_time] => 0.013820886611938
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '166745' ORDER BY item_per_off
[execution_time] => 0.014590978622437
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '317585' ORDER BY item_per_off
[execution_time] => 0.013661861419678
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '44024' ORDER BY item_per_off
[execution_time] => 0.01255989074707
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337806' ORDER BY item_per_off
[execution_time] => 0.014305114746094
)
)
)
)