Bug Method setupCookieConsent seems inefficient

There is a bug in this version
K

Kirby

Guest
Method \XF\App::setupCookieConsent() is called whenever cookie consent is being used, for example when displaying an embedded media.

This method does quite some work:
  • Instantiates a CAPTCHA
  • Loops through all media sites
  • Loops through active payment providers
This seems pointless if cookie consent is disabled - in this case it doesn't matter which 3rd parties are active so all this work could be avoided entirely (unless information about all 3rd parties is required...

Read more

Continue reading...