Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

Cache template function for use in render #25

Closed theengineear closed 3 years ago

theengineear commented 5 years ago

It seems like we should cache the response of static template so that we could re-use it efficiently. Is there a reason we're not doing this?

theengineear commented 5 years ago

@klebba , this is mostly just a question for you that I wanted a public thread on. Thoughts?

klebba commented 5 years ago

Seems reasonable; when would we want to invalidate this cache? I can't think of a reason off the top of my head

theengineear commented 5 years ago

I think never. 👍.