1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable Cookie Help Page 1.0

Disables all references to the cookie help page and 404s the Cookie Help Page

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris Deeming submitted a new resource:

    Disable Cookie Help Page (version 1.0) - Disables all references to the cookie help page and 404s the Cookie Help Page

    Read more about this resource...
     
  2. lasertits

    lasertits Active Member

    Nice work, speedy gonzales. This adds 2 db queries to my help index page though, can this be avoided?
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    EDIT: Ok I was surprised by this...

    My code contains references to two phrases:

    cookie_usage
    this_page_explains_how_this_site_uses_cookies

    And that's even though technically those phrases are both being removed from the template, it has to query the database to find out what their contents should be.

    Right now I do not have a better solution, but this is indeed a solution:

    Go to Admin CP > Appearance > Search Phrase > Phrase Name: (as above) > Check "Cache this phrase globally"

    Do that for each phrase. As they are globally cached, the database doesn't need to be queried for them.
     
    lasertits likes this.
  4. lasertits

    lasertits Active Member

    That did the trick, thanks!
     
  5. fredrikse

    fredrikse Active Member

    Is this add-on compatible with 1.2?
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    Probably.
     
  7. fredrikse

    fredrikse Active Member

    That's what I wrote in my add-on inventory list. I'm preparing for upgrade to 1.2.
     

Share This Page