Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14755511283875
[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.061681985855103
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Springdale%2C+MD%2C+US&radius=10&search_limit=15
[execution_time] => 9.467001914978
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Springdale' AND merch_region='MD'
[execution_time] => 0.0090339183807373
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MD/cities/Upper%20Marlboro/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=956fc4a7edb397587dee37cd57a3d78e&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Upper Marlboro'
AND region = 'MD'
AND country = 'United States'
AND expires > '1369259566'
[execution_time] => 0.00034594535827637
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Upper Marlboro',
'MD',
'United States',
'1369263166',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369263166', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.061562061309814
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Upper Marlboro'
AND region = 'MD'
AND country = 'United States'
AND expires > '1369259566'
[execution_time] => 0.00049495697021484
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Upper Marlboro',
'MD',
'United States',
'1369263166',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"63\", \"observation_time\": \"09:52 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1011\", \"temp_C\": \"29\", \"temp_F\": \"85\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Upper Marlboro, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"3.5\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"5.4\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"329\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"35\", \"windspeedMiles\": \"22\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369263166', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"63\", \"observation_time\": \"09:52 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1011\", \"temp_C\": \"29\", \"temp_F\": \"85\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Upper Marlboro, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"3.5\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"5.4\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"329\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"35\", \"windspeedMiles\": \"22\" } ] }}'
[execution_time] => 0.046298027038574
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(38.93747) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-76.838631) ) + sin( radians(38.93747) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.016003131866455
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '311758' ORDER BY item_per_off
[execution_time] => 0.0073561668395996
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '143617' ORDER BY item_per_off
[execution_time] => 0.0075712203979492
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312523' ORDER BY item_per_off
[execution_time] => 0.012120008468628
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339076' ORDER BY item_per_off
[execution_time] => 0.007519006729126
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '166404' ORDER BY item_per_off
[execution_time] => 0.0090389251708984
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156017' ORDER BY item_per_off
[execution_time] => 0.0089390277862549
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336926' ORDER BY item_per_off
[execution_time] => 0.014653921127319
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '129079' ORDER BY item_per_off
[execution_time] => 0.012489080429077
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314979' ORDER BY item_per_off
[execution_time] => 0.012132883071899
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314967' ORDER BY item_per_off
[execution_time] => 0.013231992721558
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314976' ORDER BY item_per_off
[execution_time] => 0.0097420215606689
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '167114' ORDER BY item_per_off
[execution_time] => 0.015084981918335
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338734' ORDER BY item_per_off
[execution_time] => 0.014498949050903
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336938' ORDER BY item_per_off
[execution_time] => 0.0070710182189941
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336934' ORDER BY item_per_off
[execution_time] => 0.0091779232025146
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '125239' ORDER BY item_per_off
[execution_time] => 0.010599136352539
)
)
)
)