[ticket/11930] Move path_helper in front of optional cache argument

Optional method arguments should be after any mandatory ones.

PHPBB3-11930