Issue Bug Closed

#24786Formprotection persistToken method is called too often, causing unnecessary DB-load

Helmut Hummel 01/25/11, 03:47 updated 02/11/11, 11:03

Description

Problem:
To asure that in all cases the tokens get persisted, I added the persistToken call way too often

Solution:
Remove most of the calls and add one in template->endPage instead, since this is a central exit point for all modules.
Thanks for Steffen Kamper for the idea.

Note: A few places are left, where the template object is not used, thus the persist method needs to be called there.

(issue imported from #M17284)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.