Array
(
[0] => Array
(
[0] => template
[1] => mar2013
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.16622805595398
[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.061750888824463
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Chicopee%2C+MA%2C+US&radius=10&search_limit=15
[execution_time] => 0.76535177230835
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Chicopee' AND merch_region='MA'
[execution_time] => 0.01112699508667
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MA/cities/Chicopee/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=09bde19bfd061efd85ec632b272ec9e3&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Chicopee'
AND region = 'MA'
AND country = 'US'
AND expires > '1371701553'
[execution_time] => 0.00033187866210938
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Chicopee',
'MA',
'US',
'1371705153',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371705153', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.057291984558105
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Chicopee'
AND region = 'MA'
AND country = 'US'
AND expires > '1371701553'
[execution_time] => 0.00065088272094727
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Chicopee',
'MA',
'US',
'1371705153',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"94\", \"observation_time\": \"04:12 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1021\", \"temp_C\": \"12\", \"temp_F\": \"54\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"110\", \"windspeedKmph\": \"4\", \"windspeedMiles\": \"2\" } ], \"request\": [ {\"query\": \"Chicopee, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.4\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.6\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"16\", \"tempMinF\": \"62\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371705153', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"94\", \"observation_time\": \"04:12 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1021\", \"temp_C\": \"12\", \"temp_F\": \"54\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"110\", \"windspeedKmph\": \"4\", \"windspeedMiles\": \"2\" } ], \"request\": [ {\"query\": \"Chicopee, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"85\", \"tempMinC\": \"9\", \"tempMinF\": \"49\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.4\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"13\", \"tempMinF\": \"55\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.6\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"16\", \"tempMinF\": \"62\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.065438985824585
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(42.176731) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-72.588608) ) + sin( radians(42.176731) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.016973972320557
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314176' ORDER BY item_per_off
[execution_time] => 0.0096719264984131
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337839' ORDER BY item_per_off
[execution_time] => 0.009023904800415
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '43150' ORDER BY item_per_off
[execution_time] => 0.0090458393096924
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309954' ORDER BY item_per_off
[execution_time] => 0.0092020034790039
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '134708' ORDER BY item_per_off
[execution_time] => 0.0091049671173096
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161216' ORDER BY item_per_off
[execution_time] => 0.0090060234069824
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '343075' ORDER BY item_per_off
[execution_time] => 0.0089731216430664
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315531' ORDER BY item_per_off
[execution_time] => 0.010128974914551
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '148700' ORDER BY item_per_off
[execution_time] => 0.011986017227173
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335734' ORDER BY item_per_off
[execution_time] => 0.013113021850586
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165843' ORDER BY item_per_off
[execution_time] => 0.012479066848755
)
)
)
)