Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Drafts AutoSave – Save posts and threads as drafts automatically
#14
What about a hybrid approach?

So maybe the system will auto save (either via cookie or localStorage or the filecache or etc...) every <configurable seconds> amount but then at <configurable minutes> amount the system will then save that copy to the database in the drafts?

Also, to prevent some issues:
- have check to ensure someone doesn't set cache/cookie-save to like 120 seconds and then database-save to like 1 minute (which would increase the number of queries made and defeat the purpose of the cookie/cache save).
- have a lowest allowable limit on how often the system can save (for both cache/cookie and database modes). So this way someone can't set the system to auto-save every 10 seconds to database.

Then when you go to load, it'll check for the quicker/new version first and if it doesn't find one then it'll default to whatever is saved in the drafts section?

Also maybe have a check so that if the system detects no changes to the draft that it won't waste any queries and update the database. (So like if someone leaves a post sitting for like 5 minutes it saves the draft to the database, but then on next check it sees the draft hasn't changed from the cached/cookie version so it doesn't update the database copy. Then if it detects the change to the cookie/cache version again on another check it'll update when the timer trips then.)

Perhaps also allow the option to disable saving to the database (in case the server strain gets too high but the function to auto save to cache/cookie is still useful) so users can just have the auto-save function like how vanilla's works. (Which some may want this option anyway.)

This might be a touch more complicated... but it'd possibly provide the benefits of both without hopefully impacting server resources too much.
My MyBB 2.0 suggestions - Mass edit group permissions - Post based Anti-spam
Reply


Messages In This Thread
RE: Drafts AutoSave, almost done - by VirusZero - 05-14-2014, 02:57 AM
RE: Drafts AutoSave, almost done - by Omar G. - 05-14-2014, 03:42 AM
RE: Drafts AutoSave, almost done - by Whiteneo - 05-14-2014, 04:09 AM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 11:20 AM
RE: Drafts AutoSave, almost done - by martec - 05-14-2014, 01:32 PM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 01:34 PM
RE: Drafts AutoSave, almost done - by martec - 05-14-2014, 01:38 PM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 01:45 PM
RE: Drafts AutoSave, almost done - by frostschutz - 05-14-2014, 01:51 PM
RE: Drafts AutoSave, almost done - by martec - 05-14-2014, 01:59 PM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 02:19 PM
RE: Drafts AutoSave, almost done - by Whiteneo - 05-14-2014, 06:59 PM
RE: Drafts AutoSave, almost done - by VirusZero - 05-14-2014, 08:30 PM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 08:35 PM
RE: Drafts AutoSave, almost done - by pavemen - 05-14-2014, 08:35 PM
RE: Drafts AutoSave, almost done - by Shade - 05-14-2014, 08:39 PM
RE: Drafts AutoSave, almost done - by pavemen - 05-14-2014, 09:00 PM
RE: Drafts AutoSave, almost done - by Wildcard - 05-14-2014, 09:16 PM
RE: Drafts AutoSave, almost done - by Euan T - 05-14-2014, 09:19 PM
RE: Drafts AutoSave, almost done - by Shade - 05-15-2014, 05:08 PM
RE: Drafts AutoSave, almost done - by pavemen - 05-15-2014, 05:39 PM
RE: Drafts AutoSave, almost done - by Euan T - 05-15-2014, 05:49 PM
RE: Drafts AutoSave, almost done - by Shade - 05-15-2014, 05:52 PM
RE: Drafts AutoSave, almost done - by Omar G. - 05-16-2014, 03:24 AM
RE: Drafts AutoSave, almost done - by Shade - 09-21-2014, 09:25 AM
RE: Drafts AutoSave, almost done - by Simone - 10-21-2014, 03:50 PM
RE: Drafts AutoSave, almost done - by Shade - 10-24-2014, 01:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)