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.17325592041016
[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.068270921707153
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=newyork%2Cny&radius=10&search_limit=15
[execution_time] => 0.9336998462677
[from_api] => Array
(
[0] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NY/cities/New%20York/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=5006f897b10d876cb85196cda41610dc&no-vertical=obituaries
)
[1] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'New York'
AND region = 'NY'
AND country = 'United States'
AND expires > '1371657914'
[execution_time] => 0.00027608871459961
)
[2] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'New York',
'NY',
'United States',
'1371661514',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371661514', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.07728910446167
)
[3] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'New York'
AND region = 'NY'
AND country = 'United States'
AND expires > '1371657914'
[execution_time] => 0.00063395500183105
)
[4] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'New York',
'NY',
'United States',
'1371661514',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"56\", \"observation_time\": \"04:05 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1018\", \"temp_C\": \"20\", \"temp_F\": \"68\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"10\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"New York, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"360\", \"winddirection\": \"N\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"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\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"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\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"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\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371661514', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"56\", \"observation_time\": \"04:05 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1018\", \"temp_C\": \"20\", \"temp_F\": \"68\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"10\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ], \"request\": [ {\"query\": \"New York, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"360\", \"winddirection\": \"N\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"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\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"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\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"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\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.075026988983154
)
[5] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.71455) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-74.007118) ) + sin( radians(40.71455) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.02118706703186
)
[6] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '152237' ORDER BY item_per_off
[execution_time] => 0.0095620155334473
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '33150' ORDER BY item_per_off
[execution_time] => 0.014123916625977
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122844' ORDER BY item_per_off
[execution_time] => 0.0091400146484375
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '134643' ORDER BY item_per_off
[execution_time] => 0.0090780258178711
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '132055' ORDER BY item_per_off
[execution_time] => 0.0091831684112549
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '261654' ORDER BY item_per_off
[execution_time] => 0.0091490745544434
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160737' ORDER BY item_per_off
[execution_time] => 0.0091421604156494
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337214' ORDER BY item_per_off
[execution_time] => 0.0090129375457764
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '341685' ORDER BY item_per_off
[execution_time] => 0.010529041290283
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334325' ORDER BY item_per_off
[execution_time] => 0.0091159343719482
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337220' ORDER BY item_per_off
[execution_time] => 0.0091519355773926
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '332969' ORDER BY item_per_off
[execution_time] => 0.011898994445801
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337218' ORDER BY item_per_off
[execution_time] => 0.0090720653533936
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '125250' ORDER BY item_per_off
[execution_time] => 0.0090699195861816
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '129799' ORDER BY item_per_off
[execution_time] => 0.010069847106934
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '155073' ORDER BY item_per_off
[execution_time] => 0.011636018753052
)
)
)
)