jawns.club is one of the many independent Mastodon servers you can use to participate in the fediverse.
Welcome to the first mastodon based community for Philadelphians who ❤️Philadelphia! Think of this instance as a new neighborhood in Philly that anyone can be a part of, because it's online.

Administered by:

Server stats:

142
active users

ragman

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

[1] pandoc.org/

Permalink: 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