Gastove / doctopus

An un-opinionated framework for Docs on the Webs
Eclipse Public License 1.0
7 stars 2 forks source link

Caching Layer #48

Open Gastove opened 9 years ago

Gastove commented 9 years ago

Right now, asking a Doctopus for it's Heads, or a Head for it's Tentacles, goes all the way to the database and back, including parsing. (HTML is not re-generated, thank heavens.) This seems.... silly? The actual data being retrieved is not likely to change very often.

This isn't going to matter for a while, but I think we want some kind of caching layer with a modest TTL and the ability to be invalidated. Something that can just store a complete stack of things and retrieve it fast, parsed and ready for action.

Thoughts?