Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14615797996521
[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.061103820800781
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Knightdale%2C+NC%2C+US&radius=10&search_limit=15
[execution_time] => 7.3154420852661
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Knightdale' AND merch_region='NC'
[execution_time] => 0.0056250095367432
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Knightdale/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=40952c3cb828ce035f4f56d1b3fd0e4d&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Knightdale'
AND region = 'NC'
AND country = 'United States'
AND expires > '1369383003'
[execution_time] => 0.00042295455932617
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Knightdale',
'NC',
'United States',
'1369386603',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369386603', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.12907481193542
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Knightdale'
AND region = 'NC'
AND country = 'United States'
AND expires > '1369383003'
[execution_time] => 0.00043702125549316
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Knightdale',
'NC',
'United States',
'1369386603',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"99\", \"observation_time\": \"08:10 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1010\", \"temp_C\": \"18\", \"temp_F\": \"65\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Knightdale, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"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\": \"SE\", \"winddirDegree\": \"145\", \"winddirection\": \"SE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369386603', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"99\", \"observation_time\": \"08:10 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1010\", \"temp_C\": \"18\", \"temp_F\": \"65\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Knightdale, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"6\", \"tempMinF\": \"43\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"winddirection\": \"NW\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"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\": \"SE\", \"winddirDegree\": \"145\", \"winddirection\": \"SE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ] }}'
[execution_time] => 0.29698491096497
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(35.790352) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-78.482231) ) + sin( radians(35.790352) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.017957925796509
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '296547' ORDER BY item_per_off
[execution_time] => 0.012330055236816
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '209076' ORDER BY item_per_off
[execution_time] => 0.0079250335693359
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338711' ORDER BY item_per_off
[execution_time] => 0.011325120925903
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334687' ORDER BY item_per_off
[execution_time] => 0.012405872344971
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335242' ORDER BY item_per_off
[execution_time] => 0.0091350078582764
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336013' ORDER BY item_per_off
[execution_time] => 0.0087320804595947
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '272294' ORDER BY item_per_off
[execution_time] => 0.0096662044525146
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '131816' ORDER BY item_per_off
[execution_time] => 0.0076160430908203
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154911' ORDER BY item_per_off
[execution_time] => 0.012918949127197
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163965' ORDER BY item_per_off
[execution_time] => 0.0099160671234131
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164298' ORDER BY item_per_off
[execution_time] => 0.011656999588013
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309933' ORDER BY item_per_off
[execution_time] => 0.0074410438537598
)
)
)
)