site  contact  subhomenews

Wow, this blog is now huge

September 08, 2017 — BarryK

Last night I wrote a script to import my previous blog to this one.

The previous blog is still there:

http://barryk.org/news/

It has 656 posts, starting from November 22, 2013, until August 2017.

It uses the pe_pplog perl script, forked from pplog by efia. She changed the storage format somewhat, and I had considerable difficulty importing the comments. Did it, but it was 2am, and although it had issues, left it at that. The comments are there, and mostly OK.

There is a lot of good stuff in that blog. A problem with pplog and derivatives is that they store all posts in the same folder, which taxes the filesystem as the number of posts grows. Ditto for the comments. All flat-file blogs that I investigated store posts in the same folder, simply because it is the easiest way to do it.

As I want my blog to have minimal load on the apache server, blog posts are in folders, named "yyyymm", for example "201709".

And shellCMS is a static CMS. That is, it is a static site generator. This is the absolute lowest load on the server that you can get, and pages load extremely fast.
The blog is generated on the local machine and then uploaded using rsync. A complete rebuild, close-on 700 posts, takes 25 seconds on my PC.

There are some tweaks that I would like to implement, including a search box.

Have a browse!


Tags: admin