[ticket/11584] Cache results of generate_board_url() in a static variable

http://tracker.phpbb.com/browse/PHPBB3-11584