Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13498592376709
[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.048182964324951
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Bethlehem%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 9.075001001358
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Bethlehem' AND merch_region='PA'
[execution_time] => 0.007565975189209
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Bethlehem/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=b5dfc9b158942f74d8f9320d90bd3d3c&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Bethlehem'
AND region = 'PA'
AND country = 'US'
AND expires > '1369524782'
[execution_time] => 0.00032186508178711
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Bethlehem',
'PA',
'US',
'1369528382',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369528382', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.078923940658569
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Bethlehem'
AND region = 'PA'
AND country = 'US'
AND expires > '1369524782'
[execution_time] => 0.00057005882263184
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Bethlehem',
'PA',
'US',
'1369528382',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"36\", \"observation_time\": \"11:33 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" } ], \"request\": [ {\"query\": \"Bethlehem, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.2\", \"tempMaxC\": \"16\", \"tempMaxF\": \"60\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"35\", \"windspeedMiles\": \"22\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"154\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369528382', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"36\", \"observation_time\": \"11:33 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" } ], \"request\": [ {\"query\": \"Bethlehem, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.2\", \"tempMaxC\": \"16\", \"tempMaxF\": \"60\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"35\", \"windspeedMiles\": \"22\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"154\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ] }}'
[execution_time] => 0.084343910217285
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.607685) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.386894) ) + sin( radians(40.607685) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.016849040985107
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '137223' ORDER BY item_per_off
[execution_time] => 0.0076260566711426
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165641' ORDER BY item_per_off
[execution_time] => 0.011579036712646
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159788' ORDER BY item_per_off
[execution_time] => 0.01109504699707
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262935' ORDER BY item_per_off
[execution_time] => 0.0077641010284424
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '51527' ORDER BY item_per_off
[execution_time] => 0.014816999435425
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315523' ORDER BY item_per_off
[execution_time] => 0.011989116668701
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333769' ORDER BY item_per_off
[execution_time] => 0.012188196182251
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333982' ORDER BY item_per_off
[execution_time] => 0.012867212295532
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309837' ORDER BY item_per_off
[execution_time] => 0.014209985733032
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312548' ORDER BY item_per_off
[execution_time] => 0.0080249309539795
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '218780' ORDER BY item_per_off
[execution_time] => 0.010133028030396
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '311827' ORDER BY item_per_off
[execution_time] => 0.012763977050781
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165306' ORDER BY item_per_off
[execution_time] => 0.011550903320312
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154612' ORDER BY item_per_off
[execution_time] => 0.012776136398315
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159475' ORDER BY item_per_off
[execution_time] => 0.015166044235229
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '325796' ORDER BY item_per_off
[execution_time] => 0.014684915542603
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155175' ORDER BY item_per_off
[execution_time] => 0.0092768669128418
)
)
)
)