Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14069390296936
[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.055646896362305
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Wheat%2C+Ridge%2C+CO&radius=10&search_limit=15
[execution_time] => 8.9788420200348
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Wheat' AND merch_region='Ridge'
[execution_time] => 0.0057330131530762
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Wheat%20Ridge/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=4c8cd888397bf2614dd8ddb11e22afb9&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Wheat Ridge'
AND region = 'CO'
AND country = 'United States'
AND expires > '1369301066'
[execution_time] => 0.00025200843811035
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Wheat Ridge',
'CO',
'United States',
'1369304666',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369304666', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.10395097732544
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Wheat Ridge'
AND region = 'CO'
AND country = 'United States'
AND expires > '1369301066'
[execution_time] => 0.00088715553283691
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Wheat Ridge',
'CO',
'United States',
'1369304666',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"76\", \"observation_time\": \"09:24 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1020\", \"temp_C\": \"10\", \"temp_F\": \"50\", \"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\": \"NNE\", \"winddirDegree\": \"30\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Wheat Ridge, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"0.1\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"101\", \"winddirection\": \"E\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"32\", \"tempMaxF\": \"89\", \"tempMinC\": \"5\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"30\", \"tempMaxF\": \"85\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"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\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"83\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"124\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369304666', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"76\", \"observation_time\": \"09:24 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1020\", \"temp_C\": \"10\", \"temp_F\": \"50\", \"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\": \"NNE\", \"winddirDegree\": \"30\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Wheat Ridge, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-23\", \"precipMM\": \"0.1\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"7\", \"tempMinF\": \"44\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"E\", \"winddirDegree\": \"101\", \"winddirection\": \"E\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"32\", \"tempMaxF\": \"89\", \"tempMinC\": \"5\", \"tempMinF\": \"42\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"10\", \"windspeedMiles\": \"6\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"30\", \"tempMaxF\": \"85\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"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\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"83\", \"tempMinC\": \"11\", \"tempMinF\": \"51\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"124\", \"winddirection\": \"ESE\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" } ] }}'
[execution_time] => 0.057632923126221
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(39.75845) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-105.080498) ) + sin( radians(39.75845) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.012510061264038
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161676' ORDER BY item_per_off
[execution_time] => 0.0069808959960938
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '308471' ORDER BY item_per_off
[execution_time] => 0.0072371959686279
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260680' ORDER BY item_per_off
[execution_time] => 0.010324954986572
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315183' ORDER BY item_per_off
[execution_time] => 0.014290809631348
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309888' ORDER BY item_per_off
[execution_time] => 0.0076029300689697
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338955' ORDER BY item_per_off
[execution_time] => 0.0072669982910156
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336895' ORDER BY item_per_off
[execution_time] => 0.0070359706878662
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336897' ORDER BY item_per_off
[execution_time] => 0.011693000793457
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338769' ORDER BY item_per_off
[execution_time] => 0.0070309638977051
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163224' ORDER BY item_per_off
[execution_time] => 0.0082340240478516
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '272022' ORDER BY item_per_off
[execution_time] => 0.0077450275421143
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338961' ORDER BY item_per_off
[execution_time] => 0.0077738761901855
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '264279' ORDER BY item_per_off
[execution_time] => 0.011848926544189
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334769' ORDER BY item_per_off
[execution_time] => 0.0074670314788818
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314387' ORDER BY item_per_off
[execution_time] => 0.0093169212341309
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '129262' ORDER BY item_per_off
[execution_time] => 0.0079200267791748
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336561' ORDER BY item_per_off
[execution_time] => 0.0078461170196533
)
)
)
)