[RSS Feed/News] Method setupCookieConsent seems inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom