drupal_flush_all_caches();
in the module file seems very heavy. Typically it should be enough to clear the affected pages. A total cache clear is expensive on large pages.
Closed: works as designed
2.0
Code
This is a one time cache clear. I think it won't make any impact as we don't create 100s of login pages and update in real time. But i would consider it updating. Thanks.
Yes I agree!