Typo Cache

Typo, the blogging software that runs this blog, was getting slower and slower for an unknown reason. Finally I decided I had had enough and begged for help in IRC. sprewell was kind enough to help me track it down to an odd caching problem. Apparently my caches weren’t going away like they should, and I had accumulated some 1.7 million files in my tmp/cache directory. Even running find tmp/cache | wc -l took a few minutes. No wonder typo (which was probably actually looking at each file’s contents) was having a cow. Apparently this isn’t a common problem, but they have struggled with cache problems in the past. So if your typo is feeling sluggish, check for the ballooning cache. If it’s there, stop typo and move or delete the offending cache directory, i.e.

typo stop .
mv tmp/cache /tmp
typo start .

It’s nice to have my old typo back.


Leave a Reply