scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Enable caching of wiki pages #90

Closed gazpachoking closed 8 years ago

gazpachoking commented 8 years ago

Seems nothing was ever being stored to the cache for wiki pages, this enables it. I've added a prefix (in case other things also need cached,) and the sha to the key, otherwise it'd just return the same cached version no matter the sha requested.

gazpachoking commented 8 years ago

@scragg0x Now I'm starting to wonder if caching the non HEAD revisions was a good idea. There could potentially be a lot of the building up in the cache, but most of the hits are all going to just be on the head version. Hmm, or maybe put a shorter time limit on those in the cache or something.