The phpBB WordPress integration extension v2
will be soon patched (and you should maybe manually patch it in the while) to correctly execute a specified part of the code (db query) only when required.
To do this, open the phpbbwordpress extension file
change this code:
It is not required to do anything else to update/fix the extension.