Jaxel
Well-known member
- Affected version
- 2.0.5
It seems on every page load, I'm getting about 20 extra queries. All the queries are various forms of:
The issue appears to be related to session caching... removing the following lines from my config.php solved the issue:
Code:
INSERT IGNORE INTO `xf_user_trophy` (`user_id`, `trophy_id`, `award_date`) VALUES (?, ?, ?)
Code:
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 161
XF\Db\AbstractAdapter->insert() in src/XF/Repository/Trophy.php at line 83
XF\Repository\Trophy->awardTrophyToUser() in src/XF/Repository/Trophy.php at line 70
XF\Repository\Trophy->updateTrophiesForUser() in src/XF/Pub/App.php at line 182
XF\Pub\App->updateUserCaches() in src/XF/Pub/App.php at line 122
XF\Pub\App->start() in src/XF/App.php at line 1890
XF\App->run() in src/XF.php at line 328
XF::runApp() in index.php at line 13
The issue appears to be related to session caching... removing the following lines from my config.php solved the issue:
Code:
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;