Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13625001907349
[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.050598859786987
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Denver%2C+CO%2C+US&radius=10&search_limit=15
[execution_time] => 8.4941670894623
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Denver' AND merch_region='CO'
[execution_time] => 0.0094010829925537
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Denver/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=d59d07cc46531ca95c150c389aad8c2b&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Denver'
AND region = 'CO'
AND country = 'US'
AND expires > '1368908503'
[execution_time] => 0.00030899047851562
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Denver',
'CO',
'US',
'1368912103',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Denver/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=d59d07cc46531ca95c150c389aad8c2b\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Denver/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=d59d07cc46531ca95c150c389aad8c2b\"},\"total\":0,\"location\":{\"display_name\":\"Denver, CO\",\"state\":\"Colorado\",\"url\":\"http://outside.in/denver-co?utm_content=Denver_CO&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-104.87655639648438,\"lat\":39.761775970458984,\"uuid\":\"d2873240-bafa-475a-856e-a5608959caa2\",\"city\":\"Denver\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"CO\",\"url_name\":\"denver-co\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1368912103', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Denver/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=d59d07cc46531ca95c150c389aad8c2b\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/CO/cities/Denver/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=d59d07cc46531ca95c150c389aad8c2b\"},\"total\":0,\"location\":{\"display_name\":\"Denver, CO\",\"state\":\"Colorado\",\"url\":\"http://outside.in/denver-co?utm_content=Denver_CO&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-104.87655639648438,\"lat\":39.761775970458984,\"uuid\":\"d2873240-bafa-475a-856e-a5608959caa2\",\"city\":\"Denver\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"CO\",\"url_name\":\"denver-co\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.18035507202148
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Denver'
AND region = 'CO'
AND country = 'US'
AND expires > '1368908503'
[execution_time] => 0.00041913986206055
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Denver',
'CO',
'US',
'1368912103',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"17\", \"observation_time\": \"08:21 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1012\", \"temp_C\": \"23\", \"temp_F\": \"73\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Denver, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-18\", \"precipMM\": \"0.1\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"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\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-19\", \"precipMM\": \"0.4\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"0.1\", \"tempMaxC\": \"14\", \"tempMaxF\": \"57\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"350\", \"winddirection\": \"N\", \"windspeedKmph\": \"50\", \"windspeedMiles\": \"31\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"0.2\", \"tempMaxC\": \"15\", \"tempMaxF\": \"58\", \"tempMinC\": \"5\", \"tempMinF\": \"40\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"331\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1368912103', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"17\", \"observation_time\": \"08:21 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1012\", \"temp_C\": \"23\", \"temp_F\": \"73\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Denver, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-18\", \"precipMM\": \"0.1\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"9\", \"tempMinF\": \"48\", \"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\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-19\", \"precipMM\": \"0.4\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"0.1\", \"tempMaxC\": \"14\", \"tempMaxF\": \"57\", \"tempMinC\": \"7\", \"tempMinF\": \"45\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"350\", \"winddirection\": \"N\", \"windspeedKmph\": \"50\", \"windspeedMiles\": \"31\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"0.2\", \"tempMaxC\": \"15\", \"tempMaxF\": \"58\", \"tempMinC\": \"5\", \"tempMinF\": \"40\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"331\", \"winddirection\": \"NNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" } ] }}'
[execution_time] => 0.041578054428101
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(39.73996) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-104.939041) ) + sin( radians(39.73996) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.019989967346191
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122192' ORDER BY item_per_off
[execution_time] => 0.0068361759185791
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339500' ORDER BY item_per_off
[execution_time] => 0.014488935470581
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '214669' ORDER BY item_per_off
[execution_time] => 0.011455059051514
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338956' ORDER BY item_per_off
[execution_time] => 0.0068869590759277
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336888' ORDER BY item_per_off
[execution_time] => 0.013897895812988
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339497' ORDER BY item_per_off
[execution_time] => 0.0098891258239746
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338959' ORDER BY item_per_off
[execution_time] => 0.011155843734741
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '215691' ORDER BY item_per_off
[execution_time] => 0.011358976364136
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262404' ORDER BY item_per_off
[execution_time] => 0.0095641613006592
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161309' ORDER BY item_per_off
[execution_time] => 0.015568971633911
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165910' ORDER BY item_per_off
[execution_time] => 0.013833045959473
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '169404' ORDER BY item_per_off
[execution_time] => 0.011275053024292
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '264279' ORDER BY item_per_off
[execution_time] => 0.011261940002441
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334267' ORDER BY item_per_off
[execution_time] => 0.012024879455566
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '264281' ORDER BY item_per_off
[execution_time] => 0.01141095161438
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '337858' ORDER BY item_per_off
[execution_time] => 0.011093139648438
)
[23] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '196623' ORDER BY item_per_off
[execution_time] => 0.013021945953369
)
)
)
)