#871: Make use of fluxbb_write_cache_file() function in extern.php, too.