Page 1 of 1

Large File

Posted: Mon Jun 23, 2008 8:52 pm
by vinman57
Like MBoard - simple, lightweight...but why does an entire web page need to be recreated as a message? The MSG folder is getting large as each message takes up about 10k.

Don't know much about script programming, and maybe this is the only way to do it, but if this can be improved upon, it would be appreciated.

Posted: Tue Jun 24, 2008 8:13 pm
by Klemen
All messages are stored as plain text on purpose - to limit the load on the server as much as possible. There are loads of other free scripts that use databases and generate posts on-the-fly (like phpBB), but Mboard has been designed intentionally not to do so.

You can make sure old messages are deleted by having $settings['keepoldmsg'] set to 0 and you will only have the number of messages set as $settings['maxposts'] stored at any time. But with modern hosting plans 10kb per message shouldn't really be a problem :wink:

Posted: Tue Jun 24, 2008 9:35 pm
by vinman57
Klemen
I "get" that. I guess the question is why not just save the "text" of the message and not the entire header and footer in each file?

Again, I know nothing about script programming so this may be the only way of doing it.

No big deal anyway

Posted: Wed Jun 25, 2008 4:46 pm
by Klemen
You could for example try using SSI (SHTML) to dynamically insert header/footer and make saved files smaller. Check the 2nd and 3rd page of this topic:
viewtopic.php?t=1936