Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

I have a global that consists of 1 rich text field and the content is displayed on every page. Does it make sense to cache that? If so, I am assuming it should be cached globally?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

It all depends on what your template is doing with the global.

If it's doing something to cause multiple database calls, then yes, you'll probably see some improvement (maybe minuscule, maybe more significant).

Anywhere you use a cache tags brings an overhead of one additional database call, so you just need to make sure it's worth it.

share|improve this answer
    
Great! Thanks Brad! –  Jacob Graf Sep 2 at 13:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.