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.17692303657532
[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.074806213378906
)
)
)
[2] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Howell%2C+NJ%2C+US&radius=10&search_limit=15
[execution_time] => 0.88700199127197
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Howell' AND merch_region='NJ'
[execution_time] => 0.011193990707397
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NJ/cities/Howell/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=dc4f75183790b07842c7bd3688aafd37&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Howell'
AND region = 'NJ'
AND country = 'US'
AND expires > '1371617031'
[execution_time] => 0.00043296813964844
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Howell',
'NJ',
'US',
'1371620631',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371620631', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.13915514945984
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Howell'
AND region = 'NJ'
AND country = 'US'
AND expires > '1371617031'
[execution_time] => 0.00046300888061523
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Howell',
'NJ',
'US',
'1371620631',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"68\", \"observation_time\": \"04:43 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1019\", \"temp_C\": \"12\", \"temp_F\": \"53\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"40\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Howell, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"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\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"80\", \"winddirection\": \"E\", \"windspeedKmph\": \"8\", \"windspeedMiles\": \"5\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"20\", \"tempMinF\": \"67\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371620631', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"68\", \"observation_time\": \"04:43 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1019\", \"temp_C\": \"12\", \"temp_F\": \"53\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"NE\", \"winddirDegree\": \"40\", \"windspeedKmph\": \"7\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Howell, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"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\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"80\", \"winddirection\": \"E\", \"windspeedKmph\": \"8\", \"windspeedMiles\": \"5\" }, {\"date\": \"2013-06-21\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-06-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"20\", \"tempMinF\": \"67\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" } ] }}'
[execution_time] => 0.044710159301758
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.147323) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-74.206531) ) + sin( radians(40.147323) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020662069320679
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154871' ORDER BY item_per_off
[execution_time] => 0.011490106582642
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '128253' ORDER BY item_per_off
[execution_time] => 0.011856079101562
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '169169' ORDER BY item_per_off
[execution_time] => 0.011761903762817
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163168' ORDER BY item_per_off
[execution_time] => 0.0091979503631592
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '257416' ORDER BY item_per_off
[execution_time] => 0.0094020366668701
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318733' ORDER BY item_per_off
[execution_time] => 0.0092060565948486
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '258240' ORDER BY item_per_off
[execution_time] => 0.010394096374512
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '284861' ORDER BY item_per_off
[execution_time] => 0.0091269016265869
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318738' ORDER BY item_per_off
[execution_time] => 0.012687206268311
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338839' ORDER BY item_per_off
[execution_time] => 0.0090341567993164
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260255' ORDER BY item_per_off
[execution_time] => 0.0091731548309326
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '278836' ORDER BY item_per_off
[execution_time] => 0.0091681480407715
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259492' ORDER BY item_per_off
[execution_time] => 0.0090999603271484
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318734' ORDER BY item_per_off
[execution_time] => 0.0090839862823486
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '229508' ORDER BY item_per_off
[execution_time] => 0.0090749263763428
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156071' ORDER BY item_per_off
[execution_time] => 0.00913405418396
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '127200' ORDER BY item_per_off
[execution_time] => 0.009091854095459
)
[24] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158247' ORDER BY item_per_off
[execution_time] => 0.0092489719390869
)
[25] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '162088' ORDER BY item_per_off
[execution_time] => 0.0091190338134766
)
[26] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318744' ORDER BY item_per_off
[execution_time] => 0.0091218948364258
)
[27] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339648' ORDER BY item_per_off
[execution_time] => 0.0090188980102539
)
[28] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318779' ORDER BY item_per_off
[execution_time] => 0.0090348720550537
)
[29] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334591' ORDER BY item_per_off
[execution_time] => 0.0090811252593994
)
)
)
)