Flat-file / DB Improvement

Post Reply
mick
Jr. Bludit
Posts: 1
Joined: Fri Jun 13, 2025 10:48 am

Currenlty, the 'pages.php' holds most metadata for all content. That has a number of disadvanages:

1. reliance on admin panel to add content (loosing the big advantage of flat-file cms that you can add content just by ftp)
2. if that file gets corrupt, so is the database;
3. if multiple customers add or change pages, you may hit race conditions;
4. if you have a large number of pages, this file keeps on growing (and likely becomes slower);

A cleaner solution is to use 'frontmatter' in the content directories (either in the content file or as a small file next to index.txt). That is also how other flat-file CMS's solve this (GravCMS, Pico, ..) and proven method.

The (interface of) pages.php could still remain so impact is limited, letting the implementation deal with reading and writing front-matter.
User avatar
Edi
Site Admin
Posts: 3078
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 71 times
Been thanked: 105 times
Contact:

Thank you for your contribution.

There is no further "official" development of Bludit at the moment.

But Bludit is Open Source therefore you can contribute to it or fork it for an own project.
Marginalien, Blog zu Kunst, Kultur und KI
aufbruch.ch, Plattform zu Kunst und Kultur um 1900
Post Reply