Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.15005993843079
[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.064736127853394
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Swansea%2C+IL%2C+US&radius=10&search_limit=15
[execution_time] => 5.7389080524445
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Swansea' AND merch_region='IL'
[execution_time] => 0.0097901821136475
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/IL/cities/Swansea/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=5e0440981d74a0f2efe465ba7b5e6809&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Swansea'
AND region = 'IL'
AND country = 'United States'
AND expires > '1369387525'
[execution_time] => 0.00028300285339355
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Swansea',
'IL',
'United States',
'1369391125',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369391125', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.053363084793091
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Swansea'
AND region = 'IL'
AND country = 'United States'
AND expires > '1369387525'
[execution_time] => 0.00034093856811523
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Swansea',
'IL',
'United States',
'1369391125',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"92\", \"observation_time\": \"09:25 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1025\", \"temp_C\": \"10\", \"temp_F\": \"49\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Swansea, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"19\", \"tempMaxF\": \"67\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"70\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.3\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"12.8\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"3.3\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369391125', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"92\", \"observation_time\": \"09:25 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1025\", \"temp_C\": \"10\", \"temp_F\": \"49\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Clear\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0008_clear_sky_night.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Swansea, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-24\", \"precipMM\": \"0.0\", \"tempMaxC\": \"19\", \"tempMaxF\": \"67\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"ENE\", \"winddirDegree\": \"70\", \"winddirection\": \"ENE\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-25\", \"precipMM\": \"0.3\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"12.8\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"17\", \"tempMinF\": \"62\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSE\", \"winddirDegree\": \"160\", \"winddirection\": \"SSE\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"3.3\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.071690082550049
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(38.526668) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-89.984207) ) + sin( radians(38.526668) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.016931056976318
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335789' ORDER BY item_per_off
[execution_time] => 0.0072281360626221
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '328849' ORDER BY item_per_off
[execution_time] => 0.017911911010742
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156453' ORDER BY item_per_off
[execution_time] => 0.011621952056885
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164280' ORDER BY item_per_off
[execution_time] => 0.011963129043579
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '53092' ORDER BY item_per_off
[execution_time] => 0.011825084686279
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260243' ORDER BY item_per_off
[execution_time] => 0.0086760520935059
)
)
)
)