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

Not Planned Cache "Watched Threads" phrase globally...

Discussion in 'Closed Suggestions' started by Jaxel, Jan 10, 2015.

  1. Jaxel

    Jaxel Well-Known Member

    Its on almost every page. Should be cached.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Why should it be cached?

    It doesn't really make any difference whether it's cached or not. It's only ever used in the template so it doesn't need to be globally cached. If it was used in code, then it only should be if it is commonly used, e.g. error messages in code shouldn't be cached.
  3. Jaxel

    Jaxel Well-Known Member

    It adds a needless query to every page.

  4. Chris D

    Chris D XenForo Developer Staff Member

    Not by default, it doesn't.

    Are you using that phrase in an add-on? Are you referencing that in PHP rather than in a template?
  5. Jaxel

    Jaxel Well-Known Member

    Ah, you're right.

Share This Page