Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13819193840027
[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.053078174591064
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Emmaus%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 6.3711020946503
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Emmaus' AND merch_region='PA'
[execution_time] => 0.0088200569152832
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Emmaus/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=95ecee151c7a3baa7b0f80362ec4771b&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Emmaus'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369473694'
[execution_time] => 0.00044608116149902
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Emmaus',
'PA',
'United States',
'1369477294',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369477294', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.03723406791687
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Emmaus'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369473694'
[execution_time] => 0.0004270076751709
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Emmaus',
'PA',
'United States',
'1369477294',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"61\", \"observation_time\": \"09:21 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"8\", \"temp_F\": \"46\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Emmaus, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"14\", \"tempMaxF\": \"58\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"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\": \"41\", \"windspeedMiles\": \"25\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"19\", \"tempMaxF\": \"67\", \"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\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"67\", \"tempMinC\": \"4\", \"tempMinF\": \"40\", \"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\": \"12.7\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"182\", \"winddirection\": \"S\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369477294', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"61\", \"observation_time\": \"09:21 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"8\", \"temp_F\": \"46\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Emmaus, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"14\", \"tempMaxF\": \"58\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"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\": \"41\", \"windspeedMiles\": \"25\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"19\", \"tempMaxF\": \"67\", \"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\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"67\", \"tempMinC\": \"4\", \"tempMinF\": \"40\", \"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\": \"12.7\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"182\", \"winddirection\": \"S\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
[execution_time] => 0.1050910949707
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.53498) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.49118) ) + sin( radians(40.53498) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.017632961273193
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165306' ORDER BY item_per_off
[execution_time] => 0.011206865310669
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333982' ORDER BY item_per_off
[execution_time] => 0.012303113937378
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333769' ORDER BY item_per_off
[execution_time] => 0.012630939483643
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315523' ORDER BY item_per_off
[execution_time] => 0.009523868560791
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '51527' ORDER BY item_per_off
[execution_time] => 0.012215852737427
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '137223' ORDER BY item_per_off
[execution_time] => 0.012233018875122
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262388' ORDER BY item_per_off
[execution_time] => 0.012732982635498
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159788' ORDER BY item_per_off
[execution_time] => 0.01227593421936
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165641' ORDER BY item_per_off
[execution_time] => 0.011223793029785
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262935' ORDER BY item_per_off
[execution_time] => 0.0095319747924805
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333157' ORDER BY item_per_off
[execution_time] => 0.01220703125
)
)
)
)