Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.27262210845947
[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.055791139602661
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Verona%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 7.9322919845581
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Verona' AND merch_region='PA'
[execution_time] => 0.0089280605316162
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Verona/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=c4c3b65148b2aedc981a5762c404587b&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Verona'
AND region = 'PA'
AND country = 'US'
AND expires > '1369372934'
[execution_time] => 0.00041007995605469
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Verona',
'PA',
'US',
'1369376534',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369376534', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.07400918006897
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Verona'
AND region = 'PA'
AND country = 'US'
AND expires > '1369372934'
[execution_time] => 0.00048398971557617
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Verona',
'PA',
'US',
'1369376534',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"05:22 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1012\", \"temp_C\": \"10\", \"temp_F\": \"50\", \"visibility\": \"11\", \"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\": \"28\", \"windspeedMiles\": \"17\" } ], \"request\": [ {\"query\": \"Verona, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"1.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"321\", \"winddirection\": \"NW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"14\", \"tempMaxF\": \"57\", \"tempMinC\": \"3\", \"tempMinF\": \"37\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"39\", \"windspeedMiles\": \"24\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"16\", \"tempMaxF\": \"60\", \"tempMinC\": \"2\", \"tempMinF\": \"36\", \"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\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"16\", \"tempMaxF\": \"61\", \"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\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369376534', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"94\", \"observation_time\": \"05:22 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1012\", \"temp_C\": \"10\", \"temp_F\": \"50\", \"visibility\": \"11\", \"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\": \"28\", \"windspeedMiles\": \"17\" } ], \"request\": [ {\"query\": \"Verona, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"1.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"321\", \"winddirection\": \"NW\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"14\", \"tempMaxF\": \"57\", \"tempMinC\": \"3\", \"tempMinF\": \"37\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"39\", \"windspeedMiles\": \"24\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"16\", \"tempMaxF\": \"60\", \"tempMinC\": \"2\", \"tempMinF\": \"36\", \"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\": \"37\", \"windspeedMiles\": \"23\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"16\", \"tempMaxF\": \"61\", \"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\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.075640201568604
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.492029) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-79.833802) ) + sin( radians(40.492029) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020601034164429
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163320' ORDER BY item_per_off
[execution_time] => 0.010021209716797
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '275316' ORDER BY item_per_off
[execution_time] => 0.011879920959473
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337948' ORDER BY item_per_off
[execution_time] => 0.011715888977051
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337417' ORDER BY item_per_off
[execution_time] => 0.011211156845093
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339146' ORDER BY item_per_off
[execution_time] => 0.011791944503784
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '143318' ORDER BY item_per_off
[execution_time] => 0.011378049850464
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '317448' ORDER BY item_per_off
[execution_time] => 0.011790990829468
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158663' ORDER BY item_per_off
[execution_time] => 0.011269092559814
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '127488' ORDER BY item_per_off
[execution_time] => 0.012251853942871
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155434' ORDER BY item_per_off
[execution_time] => 0.011765956878662
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168313' ORDER BY item_per_off
[execution_time] => 0.0096590518951416
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155279' ORDER BY item_per_off
[execution_time] => 0.011883974075317
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156475' ORDER BY item_per_off
[execution_time] => 0.011196851730347
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '162899' ORDER BY item_per_off
[execution_time] => 0.012012004852295
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '128752' ORDER BY item_per_off
[execution_time] => 0.011981964111328
)
)
)
)