Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13961005210876
[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.052910089492798
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Whitehall%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 7.6125838756561
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Whitehall' AND merch_region='PA'
[execution_time] => 0.0094120502471924
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Hokendauqua/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=0497c9eb9db9d569f001aba5c9264eef&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Hokendauqua'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369110481'
[execution_time] => 0.00040793418884277
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Hokendauqua',
'PA',
'United States',
'1369114081',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Hokendauqua/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0497c9eb9db9d569f001aba5c9264eef\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Hokendauqua/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0497c9eb9db9d569f001aba5c9264eef\"},\"total\":0,\"location\":{\"display_name\":\"Hokendauqua, PA\",\"state\":\"Pennsylvania\",\"url\":\"http://outside.in/hokendauqua-pa?utm_content=Hokendauqua_PA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-75.49488067626953,\"lat\":40.65821075439453,\"uuid\":\"31871b5c-8eff-4dcb-ba02-8a67e9fd184b\",\"city\":\"Hokendauqua\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"PA\",\"url_name\":\"hokendauqua-pa\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1369114081', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Hokendauqua/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0497c9eb9db9d569f001aba5c9264eef\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Hokendauqua/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0497c9eb9db9d569f001aba5c9264eef\"},\"total\":0,\"location\":{\"display_name\":\"Hokendauqua, PA\",\"state\":\"Pennsylvania\",\"url\":\"http://outside.in/hokendauqua-pa?utm_content=Hokendauqua_PA&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-75.49488067626953,\"lat\":40.65821075439453,\"uuid\":\"31871b5c-8eff-4dcb-ba02-8a67e9fd184b\",\"city\":\"Hokendauqua\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"PA\",\"url_name\":\"hokendauqua-pa\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.040353059768677
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Hokendauqua'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369110481'
[execution_time] => 0.00037789344787598
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Hokendauqua',
'PA',
'United States',
'1369114081',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"83\", \"observation_time\": \"04:28 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"11\", \"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\": \"Hokendauqua, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.1\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"212\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"2.4\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"7.3\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"12\", \"tempMinF\": \"53\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.5\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"3\", \"tempMinF\": \"37\", \"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\": \"28\", \"windspeedMiles\": \"17\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369114081', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"83\", \"observation_time\": \"04:28 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1016\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"11\", \"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\": \"Hokendauqua, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.1\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"17\", \"tempMinF\": \"63\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"212\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"2.4\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"10\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"7.3\", \"tempMaxC\": \"30\", \"tempMaxF\": \"86\", \"tempMinC\": \"12\", \"tempMinF\": \"53\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"18\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"0.5\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"3\", \"tempMinF\": \"37\", \"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\": \"28\", \"windspeedMiles\": \"17\" } ] }}'
[execution_time] => 0.076182126998901
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.6259) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.46888) ) + sin( radians(40.6259) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020195960998535
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333982' ORDER BY item_per_off
[execution_time] => 0.014648914337158
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333769' ORDER BY item_per_off
[execution_time] => 0.012378215789795
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315523' ORDER BY item_per_off
[execution_time] => 0.010761976242065
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '51527' ORDER BY item_per_off
[execution_time] => 0.0104079246521
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165306' ORDER BY item_per_off
[execution_time] => 0.012297868728638
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159788' ORDER BY item_per_off
[execution_time] => 0.012531042098999
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '137223' ORDER BY item_per_off
[execution_time] => 0.012612819671631
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '154612' ORDER BY item_per_off
[execution_time] => 0.018464803695679
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165641' ORDER BY item_per_off
[execution_time] => 0.012334823608398
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262935' ORDER BY item_per_off
[execution_time] => 0.010654926300049
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '309837' ORDER BY item_per_off
[execution_time] => 0.0092220306396484
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '312548' ORDER BY item_per_off
[execution_time] => 0.0075380802154541
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '218780' ORDER BY item_per_off
[execution_time] => 0.0083169937133789
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '311827' ORDER BY item_per_off
[execution_time] => 0.0074968338012695
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262388' ORDER BY item_per_off
[execution_time] => 0.012359142303467
)
)
)
)