Revert "[ticket/11224] Revert "Merge pull request #2460 from Nicofuma/ticket/11224""

This reverts commit 40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7.
[ticket/11224] Updates tests

PHPBB3-11224
Merge pull request #2460 from Nicofuma/ticket/11224

[ticket/11224] SQL cache destroy does not destroy queries to tables joined
Merge pull request #3016 from Nicofuma/ticket/11224-ascraeus

 [ticket/11224][ascraeus] SQL cache destroy does not destroy queries to tables joined
Merge branch 'develop-olympus' into develop-ascraeus
Merge branch 'develop-ascraeus' into develop