Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13368892669678
[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.047950983047485
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Portsmouth%2C+VA%2C+US&radius=10&search_limit=15
[execution_time] => 8.491311788559
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Portsmouth' AND merch_region='VA'
[execution_time] => 0.0095930099487305
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/VA/cities/Portsmouth/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=2329ac1262abff538303f028c7622999&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Portsmouth'
AND region = 'VA'
AND country = 'US'
AND expires > '1369329339'
[execution_time] => 0.00047397613525391
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Portsmouth',
'VA',
'US',
'1369332939',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369332939', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.11919713020325
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Portsmouth'
AND region = 'VA'
AND country = 'US'
AND expires > '1369329339'
[execution_time] => 0.00049805641174316
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Portsmouth',
'VA',
'US',
'1369332939',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"89\", \"observation_time\": \"05:15 PM\", \"precipMM\": \"0.2\", \"pressure\": \"1014\", \"temp_C\": \"23\", \"temp_F\": \"73\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"Portsmouth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"11.1\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"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\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"7.9\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"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\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"39\", \"windspeedMiles\": \"24\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"12\", \"tempMinF\": \"53\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"305\", \"winddirection\": \"NW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369332939', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"89\", \"observation_time\": \"05:15 PM\", \"precipMM\": \"0.2\", \"pressure\": \"1014\", \"temp_C\": \"23\", \"temp_F\": \"73\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"Portsmouth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"11.1\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"19\", \"tempMinF\": \"67\", \"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\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"7.9\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"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\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"39\", \"windspeedMiles\": \"24\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"12\", \"tempMinF\": \"53\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"305\", \"winddirection\": \"NW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.089936971664429
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(36.817322) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-76.368126) ) + sin( radians(36.817322) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.015894889831543
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338129' ORDER BY item_per_off
[execution_time] => 0.0070550441741943
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156268' ORDER BY item_per_off
[execution_time] => 0.01183295249939
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '136927' ORDER BY item_per_off
[execution_time] => 0.0084810256958008
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '190539' ORDER BY item_per_off
[execution_time] => 0.011366128921509
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '204074' ORDER BY item_per_off
[execution_time] => 0.0098779201507568
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '68579' ORDER BY item_per_off
[execution_time] => 0.010817050933838
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334034' ORDER BY item_per_off
[execution_time] => 0.011677980422974
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165152' ORDER BY item_per_off
[execution_time] => 0.010396003723145
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309931' ORDER BY item_per_off
[execution_time] => 0.010612010955811
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155577' ORDER BY item_per_off
[execution_time] => 0.0094170570373535
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159192' ORDER BY item_per_off
[execution_time] => 0.007066011428833
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318672' ORDER BY item_per_off
[execution_time] => 0.010169982910156
)
)
)
)