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

PHPBB3-11584