Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13861012458801
[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.051707983016968
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Palatine%2C+IL%2C+US&radius=10&search_limit=15
[execution_time] => 7.9650518894196
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Palatine' AND merch_region='IL'
[execution_time] => 0.0082719326019287
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/IL/cities/Palatine/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=f2c0fb9fe40e6a5436bfe3f465521b6c&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Palatine'
AND region = 'IL'
AND country = 'US'
AND expires > '1369338503'
[execution_time] => 0.00050187110900879
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Palatine',
'IL',
'US',
'1369342103',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369342103', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.15026307106018
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Palatine'
AND region = 'IL'
AND country = 'US'
AND expires > '1369338503'
[execution_time] => 0.00059008598327637
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Palatine',
'IL',
'US',
'1369342103',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"63\", \"observation_time\": \"07:48 PM\", \"precipMM\": \"0.4\", \"pressure\": \"1020\", \"temp_C\": \"11\", \"temp_F\": \"52\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNE\", \"winddirDegree\": \"20\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ], \"request\": [ {\"query\": \"Palatine, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"1.8\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"4\", \"tempMinF\": \"39\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"360\", \"winddirection\": \"N\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"13\", \"tempMaxF\": \"56\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"50\", \"winddirection\": \"NE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"5.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"26.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"10\", \"tempMinF\": \"49\", \"weatherCode\": \"302\", \"weatherDesc\": [ {\"value\": \"Moderate rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0018_cloudy_with_heavy_rain.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"125\", \"winddirection\": \"SE\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369342103', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"63\", \"observation_time\": \"07:48 PM\", \"precipMM\": \"0.4\", \"pressure\": \"1020\", \"temp_C\": \"11\", \"temp_F\": \"52\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNE\", \"winddirDegree\": \"20\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ], \"request\": [ {\"query\": \"Palatine, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"1.8\", \"tempMaxC\": \"11\", \"tempMaxF\": \"51\", \"tempMinC\": \"4\", \"tempMinF\": \"39\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"360\", \"winddirection\": \"N\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"13\", \"tempMaxF\": \"56\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"50\", \"winddirection\": \"NE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"5.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"26.2\", \"tempMaxC\": \"13\", \"tempMaxF\": \"55\", \"tempMinC\": \"10\", \"tempMinF\": \"49\", \"weatherCode\": \"302\", \"weatherDesc\": [ {\"value\": \"Moderate rain\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0018_cloudy_with_heavy_rain.png\" } ], \"winddir16Point\": \"SE\", \"winddirDegree\": \"125\", \"winddirection\": \"SE\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ] }}'
[execution_time] => 0.031390905380249
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(42.14569) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-88.027592) ) + sin( radians(42.14569) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.014266014099121
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154178' ORDER BY item_per_off
[execution_time] => 0.0072259902954102
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '328833' ORDER BY item_per_off
[execution_time] => 0.013751983642578
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334249' ORDER BY item_per_off
[execution_time] => 0.0096869468688965
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '133113' ORDER BY item_per_off
[execution_time] => 0.010936975479126
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '238448' ORDER BY item_per_off
[execution_time] => 0.015655994415283
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155381' ORDER BY item_per_off
[execution_time] => 0.012214183807373
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335586' ORDER BY item_per_off
[execution_time] => 0.0097470283508301
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '264933' ORDER BY item_per_off
[execution_time] => 0.015184879302979
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '258581' ORDER BY item_per_off
[execution_time] => 0.0137939453125
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318664' ORDER BY item_per_off
[execution_time] => 0.0076689720153809
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '33390' ORDER BY item_per_off
[execution_time] => 0.0099380016326904
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '261211' ORDER BY item_per_off
[execution_time] => 0.016161918640137
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '133234' ORDER BY item_per_off
[execution_time] => 0.012072086334229
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '264964' ORDER BY item_per_off
[execution_time] => 0.012125015258789
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '169597' ORDER BY item_per_off
[execution_time] => 0.012305021286011
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '166533' ORDER BY item_per_off
[execution_time] => 0.012135982513428
)
)
)
)