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.17549705505371
[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.066596984863281
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Ellicott%2C+City%2C+MD&radius=10&search_limit=15
[execution_time] => 1.341304063797
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Ellicott' AND merch_region='City'
[execution_time] => 0.010600090026855
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/MD/cities/Ellicott%20City/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=272a850777e9504ea56c521bf9843bca&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Ellicott City'
AND region = 'MD'
AND country = 'US'
AND expires > '1371707526'
[execution_time] => 0.00052714347839355
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Ellicott City',
'MD',
'US',
'1371711126',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371711126', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.042130947113037
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Ellicott City'
AND region = 'MD'
AND country = 'US'
AND expires > '1371707526'
[execution_time] => 0.00049686431884766
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Ellicott City',
'MD',
'US',
'1371711126',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"88\", \"observation_time\": \"05:52 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1021\", \"temp_C\": \"17\", \"temp_F\": \"63\", \"visibility\": \"16\", \"weatherCode\": \"248\", \"weatherDesc\": [ {\"value\": \"Fog\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0007_fog.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Ellicott City, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"83\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"171\", \"winddirection\": \"S\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"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\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"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\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"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\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371711126', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"25\", \"humidity\": \"88\", \"observation_time\": \"05:52 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1021\", \"temp_C\": \"17\", \"temp_F\": \"63\", \"visibility\": \"16\", \"weatherCode\": \"248\", \"weatherDesc\": [ {\"value\": \"Fog\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0007_fog.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Ellicott City, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"83\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"171\", \"winddirection\": \"S\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"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\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"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\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-23\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"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\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
[execution_time] => 0.094754934310913
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(39.2673283) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-76.7983067) ) + sin( radians(39.2673283) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020951986312866
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '144382' ORDER BY item_per_off
[execution_time] => 0.0095119476318359
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '276428' ORDER BY item_per_off
[execution_time] => 0.012593984603882
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336208' ORDER BY item_per_off
[execution_time] => 0.012248992919922
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259766' ORDER BY item_per_off
[execution_time] => 0.013328075408936
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158214' ORDER BY item_per_off
[execution_time] => 0.0091159343719482
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155958' ORDER BY item_per_off
[execution_time] => 0.0090169906616211
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165393' ORDER BY item_per_off
[execution_time] => 0.01106595993042
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '276429' ORDER BY item_per_off
[execution_time] => 0.010295867919922
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '150763' ORDER BY item_per_off
[execution_time] => 0.0090229511260986
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154513' ORDER BY item_per_off
[execution_time] => 0.0089399814605713
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168991' ORDER BY item_per_off
[execution_time] => 0.0090699195861816
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '276430' ORDER BY item_per_off
[execution_time] => 0.01104998588562
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '124112' ORDER BY item_per_off
[execution_time] => 0.009458065032959
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163411' ORDER BY item_per_off
[execution_time] => 0.0090670585632324
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '286174' ORDER BY item_per_off
[execution_time] => 0.0090320110321045
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336077' ORDER BY item_per_off
[execution_time] => 0.0089302062988281
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312531' ORDER BY item_per_off
[execution_time] => 0.0089931488037109
)
[24] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262684' ORDER BY item_per_off
[execution_time] => 0.0089929103851318
)
[25] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337674' ORDER BY item_per_off
[execution_time] => 0.0089998245239258
)
[26] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '133700' ORDER BY item_per_off
[execution_time] => 0.0090301036834717
)
)
)
)