Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14139008522034
[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.05341911315918
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Cicero%2C+NY%2C+US&radius=10&search_limit=15
[execution_time] => 6.6800179481506
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Cicero' AND merch_region='NY'
[execution_time] => 0.0077459812164307
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NY/cities/Cicero/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=0788a6b7c43affccbc11e2080645689a&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Cicero'
AND region = 'NY'
AND country = 'United States'
AND expires > '1368927117'
[execution_time] => 0.00025510787963867
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Cicero',
'NY',
'United States',
'1368930717',
''
)
ON DUPLICATE KEY UPDATE expires = '1368930717', data = ''
[execution_time] => 0.32547187805176
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Cicero'
AND region = 'NY'
AND country = 'United States'
AND expires > '1368927117'
[execution_time] => 0.00029182434082031
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Cicero',
'NY',
'United States',
'1368930717',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"49\", \"observation_time\": \"01:31 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1022\", \"temp_C\": \"19\", \"temp_F\": \"66\", \"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\": \"SSE\", \"winddirDegree\": \"160\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Cicero, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-18\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"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\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"3.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"2.4\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"44\", \"winddirection\": \"NE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"10\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1368930717', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"49\", \"observation_time\": \"01:31 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1022\", \"temp_C\": \"19\", \"temp_F\": \"66\", \"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\": \"SSE\", \"winddirDegree\": \"160\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Cicero, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-18\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"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\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"3.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"2.4\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"44\", \"winddirection\": \"NE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"10\" } ] }}'
[execution_time] => 0.085187911987305
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(43.177101) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-76.082398) ) + sin( radians(43.177101) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.01296591758728
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '123537' ORDER BY item_per_off
[execution_time] => 0.0066971778869629
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168933' ORDER BY item_per_off
[execution_time] => 0.016776084899902
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315532' ORDER BY item_per_off
[execution_time] => 0.0085020065307617
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338137' ORDER BY item_per_off
[execution_time] => 0.0095770359039307
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '31849' ORDER BY item_per_off
[execution_time] => 0.011285066604614
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314104' ORDER BY item_per_off
[execution_time] => 0.011250972747803
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312542' ORDER BY item_per_off
[execution_time] => 0.011823177337646
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262574' ORDER BY item_per_off
[execution_time] => 0.0067601203918457
)
)
)
)