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.15814995765686
[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.054718017578125
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=N.w%2C+Washington%2C+Dc%2C+DC&radius=10&search_limit=15
[execution_time] => 2.0522119998932
[from_api] => Array
(
[0] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/DC/cities/Washington/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=a2789d11e83db8189b2c61b1ceaef05b&no-vertical=obituaries
)
[1] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Washington'
AND region = 'DC'
AND country = 'US'
AND expires > '1371677159'
[execution_time] => 0.0003211498260498
)
[2] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Washington',
'DC',
'US',
'1371680759',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371680759', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.061766147613525
)
[3] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Washington'
AND region = 'DC'
AND country = 'US'
AND expires > '1371677159'
[execution_time] => 0.00046300888061523
)
[4] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Washington',
'DC',
'US',
'1371680759',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"61\", \"observation_time\": \"09:26 PM\", \"precipMM\": \"0.3\", \"pressure\": \"1019\", \"temp_C\": \"24\", \"temp_F\": \"75\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Washington, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"1.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"17\", \"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\": \"NNE\", \"winddirDegree\": \"30\", \"winddirection\": \"NNE\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"147\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371680759', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"61\", \"observation_time\": \"09:26 PM\", \"precipMM\": \"0.3\", \"pressure\": \"1019\", \"temp_C\": \"24\", \"temp_F\": \"75\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Washington, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"1.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"17\", \"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\": \"NNE\", \"winddirDegree\": \"30\", \"winddirection\": \"NNE\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"147\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ] }}'
[execution_time] => 0.13252210617065
)
[5] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(38.8951118) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-77.0363658) ) + sin( radians(38.8951118) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.021046161651611
)
[6] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '317667' ORDER BY item_per_off
[execution_time] => 0.0095391273498535
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339519' ORDER BY item_per_off
[execution_time] => 0.010110139846802
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336921' ORDER BY item_per_off
[execution_time] => 0.0092160701751709
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339251' ORDER BY item_per_off
[execution_time] => 0.0089840888977051
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165163' ORDER BY item_per_off
[execution_time] => 0.0090341567993164
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '275835' ORDER BY item_per_off
[execution_time] => 0.0090110301971436
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338048' ORDER BY item_per_off
[execution_time] => 0.0089371204376221
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339250' ORDER BY item_per_off
[execution_time] => 0.0089309215545654
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338734' ORDER BY item_per_off
[execution_time] => 0.0089800357818604
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159117' ORDER BY item_per_off
[execution_time] => 0.0090420246124268
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '208427' ORDER BY item_per_off
[execution_time] => 0.0089888572692871
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '280544' ORDER BY item_per_off
[execution_time] => 0.0089981555938721
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '128356' ORDER BY item_per_off
[execution_time] => 0.0090210437774658
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161786' ORDER BY item_per_off
[execution_time] => 0.0089819431304932
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335269' ORDER BY item_per_off
[execution_time] => 0.0090539455413818
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '342191' ORDER BY item_per_off
[execution_time] => 0.0089559555053711
)
)
)
)