Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13726305961609
[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.050911903381348
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Ankeny%2C+IA%2C+US&radius=10&search_limit=15
[execution_time] => 6.5053849220276
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Ankeny' AND merch_region='IA'
[execution_time] => 0.0073709487915039
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/IA/cities/Ankeny/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=a64e806c4f1cf500599ce964e950e768&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Ankeny'
AND region = 'IA'
AND country = 'US'
AND expires > '1369051765'
[execution_time] => 0.00051212310791016
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Ankeny',
'IA',
'US',
'1369055365',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/IA/cities/Ankeny/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=a64e806c4f1cf500599ce964e950e768\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/IA/cities/Ankeny/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=a64e806c4f1cf500599ce964e950e768\"},\"total\":0,\"location\":{\"display_name\":\"Ankeny, IA\",\"state\":\"Iowa\",\"url\":\"http://outside.in/ankeny-ia?utm_content=Ankeny_IA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-93.60343933105469,\"lat\":41.72208023071289,\"uuid\":\"90f41781-b067-4481-a6fd-963cf9a86227\",\"city\":\"Ankeny\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"IA\",\"url_name\":\"ankeny-ia\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1369055365', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/IA/cities/Ankeny/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=a64e806c4f1cf500599ce964e950e768\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/IA/cities/Ankeny/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=a64e806c4f1cf500599ce964e950e768\"},\"total\":0,\"location\":{\"display_name\":\"Ankeny, IA\",\"state\":\"Iowa\",\"url\":\"http://outside.in/ankeny-ia?utm_content=Ankeny_IA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-93.60343933105469,\"lat\":41.72208023071289,\"uuid\":\"90f41781-b067-4481-a6fd-963cf9a86227\",\"city\":\"Ankeny\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"IA\",\"url_name\":\"ankeny-ia\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.069370985031128
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Ankeny'
AND region = 'IA'
AND country = 'US'
AND expires > '1369051765'
[execution_time] => 0.00043606758117676
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Ankeny',
'IA',
'US',
'1369055365',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"83\", \"observation_time\": \"12:09 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1003\", \"temp_C\": \"17\", \"temp_F\": \"63\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"windspeedKmph\": \"20\", \"windspeedMiles\": \"13\" } ], \"request\": [ {\"query\": \"Ankeny, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-20\", \"precipMM\": \"6.7\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"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\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"5.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"250\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"2.7\", \"tempMaxC\": \"21\", \"tempMaxF\": \"71\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"17\", \"tempMaxF\": \"62\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"326\", \"winddirection\": \"NW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369055365', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"83\", \"observation_time\": \"12:09 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1003\", \"temp_C\": \"17\", \"temp_F\": \"63\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"windspeedKmph\": \"20\", \"windspeedMiles\": \"13\" } ], \"request\": [ {\"query\": \"Ankeny, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-20\", \"precipMM\": \"6.7\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"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\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"5.4\", \"tempMaxC\": \"22\", \"tempMaxF\": \"72\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"250\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"2.7\", \"tempMaxC\": \"21\", \"tempMaxF\": \"71\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"17\", \"tempMaxF\": \"62\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"326\", \"winddirection\": \"NW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.064543008804321
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.70398) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-93.572022) ) + sin( radians(41.70398) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.016093969345093
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '280998' ORDER BY item_per_off
[execution_time] => 0.0073239803314209
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '194558' ORDER BY item_per_off
[execution_time] => 0.010093927383423
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154845' ORDER BY item_per_off
[execution_time] => 0.0120530128479
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156133' ORDER BY item_per_off
[execution_time] => 0.011940956115723
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335633' ORDER BY item_per_off
[execution_time] => 0.011677980422974
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165630' ORDER BY item_per_off
[execution_time] => 0.0099608898162842
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164621' ORDER BY item_per_off
[execution_time] => 0.01167106628418
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '284245' ORDER BY item_per_off
[execution_time] => 0.0093491077423096
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168833' ORDER BY item_per_off
[execution_time] => 0.0093221664428711
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312567' ORDER BY item_per_off
[execution_time] => 0.011357069015503
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165552' ORDER BY item_per_off
[execution_time] => 0.016681909561157
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334072' ORDER BY item_per_off
[execution_time] => 0.0092117786407471
)
)
)
)