Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14084100723267
[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.053921937942505
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Yorktown%2C+Heights%2C+NY&radius=10&search_limit=15
[execution_time] => 8.3298680782318
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Yorktown' AND merch_region='Heights'
[execution_time] => 0.0068240165710449
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NY/cities/Yorktown%20Heights/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=4f01c8c131aac4e94d8b519352ed10ce&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Yorktown Heights'
AND region = 'NY'
AND country = 'United States'
AND expires > '1369357840'
[execution_time] => 0.00045609474182129
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Yorktown Heights',
'NY',
'United States',
'1369361440',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369361440', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.046124935150146
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Yorktown Heights'
AND region = 'NY'
AND country = 'United States'
AND expires > '1369357840'
[execution_time] => 0.00049090385437012
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Yorktown Heights',
'NY',
'United States',
'1369361440',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"01:10 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1010\", \"temp_C\": \"18\", \"temp_F\": \"64\", \"visibility\": \"2\", \"weatherCode\": \"389\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0040_thunderstorms_night.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Yorktown Heights, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.9\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"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\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"6.0\", \"tempMaxC\": \"17\", \"tempMaxF\": \"63\", \"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\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"12.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"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\": \"35\", \"windspeedMiles\": \"22\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.6\", \"tempMaxC\": \"12\", \"tempMaxF\": \"53\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"306\", \"winddirection\": \"NW\", \"windspeedKmph\": \"41\", \"windspeedMiles\": \"25\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369361440', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"01:10 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1010\", \"temp_C\": \"18\", \"temp_F\": \"64\", \"visibility\": \"2\", \"weatherCode\": \"389\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0040_thunderstorms_night.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Yorktown Heights, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.9\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"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\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"6.0\", \"tempMaxC\": \"17\", \"tempMaxF\": \"63\", \"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\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"12.0\", \"tempMaxC\": \"11\", \"tempMaxF\": \"52\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"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\": \"35\", \"windspeedMiles\": \"22\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.6\", \"tempMaxC\": \"12\", \"tempMaxF\": \"53\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"306\", \"winddirection\": \"NW\", \"windspeedKmph\": \"41\", \"windspeedMiles\": \"25\" } ] }}'
[execution_time] => 0.049784898757935
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.268509) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-73.783112) ) + sin( radians(41.268509) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020824909210205
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '134141' ORDER BY item_per_off
[execution_time] => 0.01097583770752
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '298387' ORDER BY item_per_off
[execution_time] => 0.012293100357056
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159648' ORDER BY item_per_off
[execution_time] => 0.013020038604736
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '134341' ORDER BY item_per_off
[execution_time] => 0.016046047210693
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158012' ORDER BY item_per_off
[execution_time] => 0.012179136276245
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '136991' ORDER BY item_per_off
[execution_time] => 0.012121915817261
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '126493' ORDER BY item_per_off
[execution_time] => 0.012305021286011
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '162000' ORDER BY item_per_off
[execution_time] => 0.012255907058716
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '131272' ORDER BY item_per_off
[execution_time] => 0.01175594329834
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168771' ORDER BY item_per_off
[execution_time] => 0.01439905166626
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281579' ORDER BY item_per_off
[execution_time] => 0.011030912399292
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '132576' ORDER BY item_per_off
[execution_time] => 0.012318134307861
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160649' ORDER BY item_per_off
[execution_time] => 0.012871980667114
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312573' ORDER BY item_per_off
[execution_time] => 0.012090921401978
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309870' ORDER BY item_per_off
[execution_time] => 0.012346029281616
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122920' ORDER BY item_per_off
[execution_time] => 0.013545989990234
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '136429' ORDER BY item_per_off
[execution_time] => 0.012511968612671
)
)
)
)