Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14061093330383
[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.052483081817627
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Dyer%2C+IN%2C+US&radius=10&search_limit=15
[execution_time] => 5.7262170314789
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Dyer' AND merch_region='IN'
[execution_time] => 0.0069260597229004
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/IN/cities/Dyer/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=09fb8f476315bd5bf7c9a2bfb6890a31&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Dyer'
AND region = 'IN'
AND country = 'US'
AND expires > '1369541153'
[execution_time] => 0.0004730224609375
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Dyer',
'IN',
'US',
'1369544753',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369544753', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.093276977539062
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Dyer'
AND region = 'IN'
AND country = 'US'
AND expires > '1369541153'
[execution_time] => 0.00046896934509277
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Dyer',
'IN',
'US',
'1369544753',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"73\", \"observation_time\": \"04:05 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1027\", \"temp_C\": \"10\", \"temp_F\": \"49\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Dyer, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.1\", \"tempMaxC\": \"17\", \"tempMaxF\": \"63\", \"tempMinC\": \"10\", \"tempMinF\": \"51\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"70\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"5\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"2.6\", \"tempMaxC\": \"18\", \"tempMaxF\": \"65\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"132\", \"winddirection\": \"SE\", \"windspeedKmph\": \"12\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"15.7\", \"tempMaxC\": \"18\", \"tempMaxF\": \"64\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"3.6\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369544753', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"73\", \"observation_time\": \"04:05 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1027\", \"temp_C\": \"10\", \"temp_F\": \"49\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Dyer, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.1\", \"tempMaxC\": \"17\", \"tempMaxF\": \"63\", \"tempMinC\": \"10\", \"tempMinF\": \"51\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"70\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"5\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"2.6\", \"tempMaxC\": \"18\", \"tempMaxF\": \"65\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"132\", \"winddirection\": \"SE\", \"windspeedKmph\": \"12\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"15.7\", \"tempMaxC\": \"18\", \"tempMaxF\": \"64\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"3.6\", \"tempMaxC\": \"19\", \"tempMaxF\": \"66\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"130\", \"winddirection\": \"SE\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
[execution_time] => 0.044456958770752
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.492042) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-87.500908) ) + sin( radians(41.492042) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020543098449707
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135875' ORDER BY item_per_off
[execution_time] => 0.0083110332489014
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336162' ORDER BY item_per_off
[execution_time] => 0.0087869167327881
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333824' ORDER BY item_per_off
[execution_time] => 0.012784004211426
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '190469' ORDER BY item_per_off
[execution_time] => 0.010768890380859
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314545' ORDER BY item_per_off
[execution_time] => 0.0078780651092529
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '257746' ORDER BY item_per_off
[execution_time] => 0.012363910675049
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333823' ORDER BY item_per_off
[execution_time] => 0.012712001800537
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168960' ORDER BY item_per_off
[execution_time] => 0.012746095657349
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122555' ORDER BY item_per_off
[execution_time] => 0.017217874526978
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '166895' ORDER BY item_per_off
[execution_time] => 0.013873815536499
)
)
)
)