Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13447308540344
[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.047362089157104
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Clarks%2C+Summit%2C+PA&radius=10&search_limit=15
[execution_time] => 7.3827531337738
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Clarks' AND merch_region='Summit'
[execution_time] => 0.0090310573577881
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Clarks%20Summit/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=8a56f32da2fa113ae1ad587672ef1d68&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Clarks Summit'
AND region = 'PA'
AND country = 'United States'
AND expires > '1368967385'
[execution_time] => 0.00036311149597168
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Clarks Summit',
'PA',
'United States',
'1368970985',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Clarks%20Summit/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=8a56f32da2fa113ae1ad587672ef1d68\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Clarks%20Summit/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=8a56f32da2fa113ae1ad587672ef1d68\"},\"total\":0,\"location\":{\"display_name\":\"Clarks Summit, PA\",\"state\":\"Pennsylvania\",\"url\":\"http://outside.in/clarks-summit-pa?utm_content=Clarks_Summit_PA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-75.70674133300781,\"lat\":41.490089416503906,\"uuid\":\"9d49a3cf-fae3-4593-8ee7-36ba66f0f8d3\",\"city\":\"Clarks Summit\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"PA\",\"url_name\":\"clarks-summit-pa\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1368970985', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Clarks%20Summit/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=8a56f32da2fa113ae1ad587672ef1d68\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Clarks%20Summit/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=8a56f32da2fa113ae1ad587672ef1d68\"},\"total\":0,\"location\":{\"display_name\":\"Clarks Summit, PA\",\"state\":\"Pennsylvania\",\"url\":\"http://outside.in/clarks-summit-pa?utm_content=Clarks_Summit_PA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-75.70674133300781,\"lat\":41.490089416503906,\"uuid\":\"9d49a3cf-fae3-4593-8ee7-36ba66f0f8d3\",\"city\":\"Clarks Summit\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"PA\",\"url_name\":\"clarks-summit-pa\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.057190895080566
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Clarks Summit'
AND region = 'PA'
AND country = 'United States'
AND expires > '1368967385'
[execution_time] => 0.00052905082702637
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Clarks Summit',
'PA',
'United States',
'1368970985',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"82\", \"humidity\": \"91\", \"observation_time\": \"12:43 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1024\", \"temp_C\": \"13\", \"temp_F\": \"56\", \"visibility\": \"10\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"110\", \"windspeedKmph\": \"4\", \"windspeedMiles\": \"2\" } ], \"request\": [ {\"query\": \"Clarks Summit, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-19\", \"precipMM\": \"0.3\", \"tempMaxC\": \"18\", \"tempMaxF\": \"64\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"1.2\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"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\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"3.1\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"15\", \"tempMinF\": \"60\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"9.8\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"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\": \"243\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1368970985', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"82\", \"humidity\": \"91\", \"observation_time\": \"12:43 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1024\", \"temp_C\": \"13\", \"temp_F\": \"56\", \"visibility\": \"10\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"110\", \"windspeedKmph\": \"4\", \"windspeedMiles\": \"2\" } ], \"request\": [ {\"query\": \"Clarks Summit, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-19\", \"precipMM\": \"0.3\", \"tempMaxC\": \"18\", \"tempMaxF\": \"64\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"1.2\", \"tempMaxC\": \"25\", \"tempMaxF\": \"77\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"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\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"3.1\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"15\", \"tempMinF\": \"60\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"14\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"9.8\", \"tempMaxC\": \"27\", \"tempMaxF\": \"80\", \"tempMinC\": \"18\", \"tempMinF\": \"64\", \"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\": \"243\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"16\", \"windspeedMiles\": \"10\" } ] }}'
[execution_time] => 0.073940992355347
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(41.493278) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.700851) ) + sin( radians(41.493278) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.01954197883606
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339269' ORDER BY item_per_off
[execution_time] => 0.0064589977264404
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338589' ORDER BY item_per_off
[execution_time] => 0.013633966445923
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '325926' ORDER BY item_per_off
[execution_time] => 0.0087399482727051
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168343' ORDER BY item_per_off
[execution_time] => 0.01089882850647
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '192650' ORDER BY item_per_off
[execution_time] => 0.0094189643859863
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259135' ORDER BY item_per_off
[execution_time] => 0.01085901260376
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '143083' ORDER BY item_per_off
[execution_time] => 0.0079548358917236
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334214' ORDER BY item_per_off
[execution_time] => 0.010854005813599
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '131827' ORDER BY item_per_off
[execution_time] => 0.014514923095703
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159094' ORDER BY item_per_off
[execution_time] => 0.010788917541504
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '167361' ORDER BY item_per_off
[execution_time] => 0.0097761154174805
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '339008' ORDER BY item_per_off
[execution_time] => 0.0106201171875
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '314174' ORDER BY item_per_off
[execution_time] => 0.0074610710144043
)
)
)
)