Jump to content

Should I set a floodlimit in a file or database


3raser

Recommended Posts

Sorry if I'm wording this in a way it's hard to understand.

 

I'm going to update the users table and set the lastpost field using microseconds when they make a new post/topic. When they go to make a new post/topic, I need to compare their lastpost to the flood limit time using some simple subtraction. Where should I store the time interval (flood limit time)? A file or database.

Link to comment
Share on other sites

I would store that in a database with the rest of your config options.

 

I don't see any need to store a user lastpost time in the users table, you should be able to get this information from your *posts* table.

 

The lastpost field in the users table seems like it would be faster, seeing as I'd have to extract their last post time from the threads and posts table. I'm also going to make a "time since last post" feature in the future.

 

And thanks, I'll be using a database. :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.