Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.16836786270142
[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.032181024551392
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Waikiki%2C+HI%2C+US&radius=10&search_limit=15
[execution_time] => 9.1737718582153
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Waikiki' AND merch_region='HI'
[execution_time] => 0.0051839351654053
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Honolulu/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=88c190493f25e2846f7bda234ade11b7&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Honolulu'
AND region = 'HI'
AND country = 'United States'
AND expires > '1369063412'
[execution_time] => 0.00049018859863281
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Honolulu',
'HI',
'United States',
'1369067012',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Honolulu/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=88c190493f25e2846f7bda234ade11b7\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Honolulu/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=88c190493f25e2846f7bda234ade11b7\"},\"total\":0,\"location\":{\"display_name\":\"Honolulu, HI\",\"state\":\"Hawaii\",\"url\":\"http://outside.in/honolulu-hi?utm_content=Honolulu_HI&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-157.81622314453125,\"lat\":21.324262619018555,\"uuid\":\"2a35c6ff-ef89-4e67-8fd0-ad62599cd054\",\"city\":\"Honolulu\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"HI\",\"url_name\":\"honolulu-hi\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1369067012', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Honolulu/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=88c190493f25e2846f7bda234ade11b7\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/HI/cities/Honolulu/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=88c190493f25e2846f7bda234ade11b7\"},\"total\":0,\"location\":{\"display_name\":\"Honolulu, HI\",\"state\":\"Hawaii\",\"url\":\"http://outside.in/honolulu-hi?utm_content=Honolulu_HI&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-157.81622314453125,\"lat\":21.324262619018555,\"uuid\":\"2a35c6ff-ef89-4e67-8fd0-ad62599cd054\",\"city\":\"Honolulu\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"HI\",\"url_name\":\"honolulu-hi\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.058296918869019
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Honolulu'
AND region = 'HI'
AND country = 'United States'
AND expires > '1369063412'
[execution_time] => 0.00049114227294922
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Honolulu',
'HI',
'United States',
'1369067012',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"78\", \"observation_time\": \"03:23 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1014\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Honolulu, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-20\", \"precipMM\": \"0.1\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"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\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"2.3\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"21\", \"tempMinF\": \"69\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"0.6\", \"tempMaxC\": \"29\", \"tempMaxF\": \"83\", \"tempMinC\": \"24\", \"tempMinF\": \"76\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"24\", \"tempMinF\": \"75\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"78\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369067012', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"78\", \"observation_time\": \"03:23 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1014\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"NNW\", \"winddirDegree\": \"340\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" } ], \"request\": [ {\"query\": \"Honolulu, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-20\", \"precipMM\": \"0.1\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"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\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"2.3\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"21\", \"tempMinF\": \"69\", \"weatherCode\": \"176\", \"weatherDesc\": [ {\"value\": \"Patchy rain nearby\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"0.6\", \"tempMaxC\": \"29\", \"tempMaxF\": \"83\", \"tempMinC\": \"24\", \"tempMinF\": \"76\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"0.3\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"24\", \"tempMinF\": \"75\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"78\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" } ] }}'
[execution_time] => 0.29148697853088
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(21.279461) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-157.826172) ) + sin( radians(21.279461) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.015568017959595
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336980' ORDER BY item_per_off
[execution_time] => 0.0071649551391602
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281986' ORDER BY item_per_off
[execution_time] => 0.0076689720153809
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336974' ORDER BY item_per_off
[execution_time] => 0.0074789524078369
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '331223' ORDER BY item_per_off
[execution_time] => 0.01246190071106
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281983' ORDER BY item_per_off
[execution_time] => 0.0093679428100586
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338000' ORDER BY item_per_off
[execution_time] => 0.010011911392212
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '331820' ORDER BY item_per_off
[execution_time] => 0.0074648857116699
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336977' ORDER BY item_per_off
[execution_time] => 0.0076150894165039
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336976' ORDER BY item_per_off
[execution_time] => 0.0075569152832031
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336972' ORDER BY item_per_off
[execution_time] => 0.0092010498046875
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281985' ORDER BY item_per_off
[execution_time] => 0.0073349475860596
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312366' ORDER BY item_per_off
[execution_time] => 0.01383900642395
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '151958' ORDER BY item_per_off
[execution_time] => 0.0068800449371338
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281984' ORDER BY item_per_off
[execution_time] => 0.0075159072875977
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '281987' ORDER BY item_per_off
[execution_time] => 0.0046510696411133
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338055' ORDER BY item_per_off
[execution_time] => 0.007451057434082
)
)
)
)