Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.21341800689697
[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.05426287651062
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Hendersonville%2C+NC%2C+US&radius=10&search_limit=15
[execution_time] => 4.9614019393921
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Hendersonville' AND merch_region='NC'
[execution_time] => 0.0092000961303711
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Hendersonville/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=77ceb9496fdffff25c9ef2a351ebd9bb&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Hendersonville'
AND region = 'NC'
AND country = 'US'
AND expires > '1369354857'
[execution_time] => 0.00036406517028809
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Hendersonville',
'NC',
'US',
'1369358457',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369358457', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.10847902297974
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Hendersonville'
AND region = 'NC'
AND country = 'US'
AND expires > '1369354857'
[execution_time] => 0.00063395500183105
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Hendersonville',
'NC',
'US',
'1369358457',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"47\", \"observation_time\": \"12:20 AM\", \"precipMM\": \"1.0\", \"pressure\": \"1013\", \"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_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"Hendersonville, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.4\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"4\", \"tempMinF\": \"40\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"50\", \"windspeedMiles\": \"31\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"350\", \"winddirection\": \"N\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"288\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369358457', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"47\", \"observation_time\": \"12:20 AM\", \"precipMM\": \"1.0\", \"pressure\": \"1013\", \"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_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"Hendersonville, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"2.4\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"330\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"4\", \"tempMinF\": \"40\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"50\", \"windspeedMiles\": \"31\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"350\", \"winddirection\": \"N\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"288\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" } ] }}'
[execution_time] => 0.046646118164062
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(35.316559) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-82.459953) ) + sin( radians(35.316559) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.017792940139771
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '123900' ORDER BY item_per_off
[execution_time] => 0.0071909427642822
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260277' ORDER BY item_per_off
[execution_time] => 0.0106360912323
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '261677' ORDER BY item_per_off
[execution_time] => 0.012107849121094
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158269' ORDER BY item_per_off
[execution_time] => 0.011795043945312
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334573' ORDER BY item_per_off
[execution_time] => 0.011718034744263
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309950' ORDER BY item_per_off
[execution_time] => 0.01178503036499
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '261704' ORDER BY item_per_off
[execution_time] => 0.013306140899658
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155619' ORDER BY item_per_off
[execution_time] => 0.0085728168487549
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '332626' ORDER BY item_per_off
[execution_time] => 0.0085000991821289
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158952' ORDER BY item_per_off
[execution_time] => 0.011789798736572
)
)
)
)