[ticket/11224][ascraeus] SQL cache destroy does not destroy queries to tables joined

Ascraeus branch for https://github.com/phpbb/phpbb/pull/2460
updated