Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13255882263184
[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.045390844345093
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Aiea%2C+HI%2C+US&radius=10&search_limit=15
[execution_time] => 6.6019458770752
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Aiea' AND merch_region='HI'
[execution_time] => 0.0092599391937256
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Aiea/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=68af76ac268afebfb7221136657703e8&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Aiea'
AND region = 'HI'
AND country = 'US'
AND expires > '1369560525'
[execution_time] => 0.00048589706420898
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Aiea',
'HI',
'US',
'1369564125',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369564125', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.089066982269287
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Aiea'
AND region = 'HI'
AND country = 'US'
AND expires > '1369560525'
[execution_time] => 0.00050902366638184
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Aiea',
'HI',
'US',
'1369564125',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"74\", \"observation_time\": \"09:28 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1019\", \"temp_C\": \"24\", \"temp_F\": \"75\", \"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\": \"ENE\", \"winddirDegree\": \"60\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Aiea, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"1.9\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"22\", \"tempMinF\": \"71\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"69\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"27\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.3\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"23\", \"tempMinF\": \"73\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"100\", \"winddirection\": \"E\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"2.2\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"23\", \"tempMinF\": \"73\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"100\", \"winddirection\": \"E\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"3.2\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"24\", \"tempMinF\": \"74\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"winddirection\": \"SE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369564125', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"74\", \"observation_time\": \"09:28 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1019\", \"temp_C\": \"24\", \"temp_F\": \"75\", \"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\": \"ENE\", \"winddirDegree\": \"60\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Aiea, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"1.9\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"22\", \"tempMinF\": \"71\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"69\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"27\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.3\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"23\", \"tempMinF\": \"73\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"100\", \"winddirection\": \"E\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"2.2\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"23\", \"tempMinF\": \"73\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"100\", \"winddirection\": \"E\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"3.2\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"24\", \"tempMinF\": \"74\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"140\", \"winddirection\": \"SE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" } ] }}'
[execution_time] => 0.080952882766724
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(21.389799) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-157.952133) ) + sin( radians(21.389799) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.01530909538269
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281988' ORDER BY item_per_off
[execution_time] => 0.0080509185791016
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333137' ORDER BY item_per_off
[execution_time] => 0.012504816055298
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312366' ORDER BY item_per_off
[execution_time] => 0.012603998184204
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334871' ORDER BY item_per_off
[execution_time] => 0.013288021087646
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339572' ORDER BY item_per_off
[execution_time] => 0.01082706451416
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312305' ORDER BY item_per_off
[execution_time] => 0.012679815292358
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339573' ORDER BY item_per_off
[execution_time] => 0.0097169876098633
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336972' ORDER BY item_per_off
[execution_time] => 0.013652801513672
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '331820' ORDER BY item_per_off
[execution_time] => 0.0089190006256104
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339571' ORDER BY item_per_off
[execution_time] => 0.011442184448242
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281983' ORDER BY item_per_off
[execution_time] => 0.012656927108765
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336977' ORDER BY item_per_off
[execution_time] => 0.012223958969116
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '331223' ORDER BY item_per_off
[execution_time] => 0.016484975814819
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338000' ORDER BY item_per_off
[execution_time] => 0.012982130050659
)
)
)
)