Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14529418945312
[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.056849956512451
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Nazareth%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 6.061408996582
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Nazareth' AND merch_region='PA'
[execution_time] => 0.0094959735870361
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Nazareth/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=45c193e9b07c1e18f87119d591049d70&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Nazareth'
AND region = 'PA'
AND country = 'US'
AND expires > '1369469477'
[execution_time] => 0.00044918060302734
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Nazareth',
'PA',
'US',
'1369473077',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369473077', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.19082689285278
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Nazareth'
AND region = 'PA'
AND country = 'US'
AND expires > '1369469477'
[execution_time] => 0.00031805038452148
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Nazareth',
'PA',
'US',
'1369473077',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"71\", \"observation_time\": \"08:11 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"8\", \"temp_F\": \"46\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ], \"request\": [ {\"query\": \"Nazareth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"18\", \"tempMaxF\": \"65\", \"tempMinC\": \"3\", \"tempMinF\": \"38\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"325\", \"winddirection\": \"NW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"67\", \"tempMinC\": \"5\", \"tempMinF\": \"41\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"303\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"3\", \"tempMinF\": \"38\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"292\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"12.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"71\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"184\", \"winddirection\": \"S\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369473077', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"71\", \"observation_time\": \"08:11 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"8\", \"temp_F\": \"46\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ], \"request\": [ {\"query\": \"Nazareth, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"18\", \"tempMaxF\": \"65\", \"tempMinC\": \"3\", \"tempMinF\": \"38\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"325\", \"winddirection\": \"NW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"67\", \"tempMinC\": \"5\", \"tempMinF\": \"41\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"303\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"3\", \"tempMinF\": \"38\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"292\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"12.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"71\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"184\", \"winddirection\": \"S\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
[execution_time] => 0.08038592338562
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.74585) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.320102) ) + sin( radians(40.74585) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.018586874008179
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '169266' ORDER BY item_per_off
[execution_time] => 0.014727115631104
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155175' ORDER BY item_per_off
[execution_time] => 0.012058973312378
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '325796' ORDER BY item_per_off
[execution_time] => 0.012181997299194
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309837' ORDER BY item_per_off
[execution_time] => 0.011515140533447
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312548' ORDER BY item_per_off
[execution_time] => 0.01144003868103
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '218780' ORDER BY item_per_off
[execution_time] => 0.011266946792603
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '311827' ORDER BY item_per_off
[execution_time] => 0.010607004165649
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154612' ORDER BY item_per_off
[execution_time] => 0.012013912200928
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262935' ORDER BY item_per_off
[execution_time] => 0.013501167297363
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159788' ORDER BY item_per_off
[execution_time] => 0.0097270011901855
)
)
)
)