I use pandoc[1] heavily for my blog generator, converting the markdown files I write my content in to the HTML or Mastonified text that I actually upload.
It works great, but my generator script was running it against dozens of files everytime I changed anything, and my site was taking on the order of ~5 seconds to re-generate.
May not seem like a lot, but it used to be run pretty instantaneously, and the delay was starting to make writing new blog posts frustrating.
(1/2)
Solution? I added a cache of the pandoc-ed content! Generation times are back to instant!
Hurray for caching! :D
Permalink: https://www.ragman.net/notes/12
(2/2)
Aaaaand I broke my notes RSS feed because I made a bug in the caching.
But it's fixed now!
You know what they say:
"There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors." - Leon Bambrick