1.2 - Editor - Can I manually remove a cached draft post?

Just coming back to this - because I've been "haunted" by cached drafts following me around various threads most of today - you can remove the cached content by highlighting it, pressing delete, and then clicking Post Reply.

You get a warning you can't submit an empty post but it does "clear" the cache (presumably by refreshing it with the new [empty] content). ;)
 
Tip: Don't push this too hard. On a few seconds frequency, if you have 15,000 different instances of the same thing happening at once, it will cost you.

lol ... I think we'd be safe with every couple of hours with this particular cron. ;)
 
Tip: Don't push this too hard. On a few seconds frequency, if you have 15,000 different instances of the same thing happening at once, it will cost you.

Putting my developer hat on, the Cron job will most likely a very simple DELETE FROM query that would execute on even millions of rows in less than a couple of seconds, and of course the more frequent it is, the less rows it has to delete from so it really isn't a problem. On even a extremely busy board, how many drafts are you going to get saved every minute? Not very many.

Not saying you should run it every minute, but I imagine it would be pretty safe to do so.
 
I'm confused.... what are the alerts that op is talking about?

When I'm watching a thread, compose a reply, but then decide not to post it.

Later on when I get an alert to say someone else has posted something in the thread - I go back and my previously composed post is still there, cached in the editor reply box. (y)
 
It's a cron. Run the cron manually or set it to a higher frequency.

This may not be sufficient. Because I am sure there is a timestamp to decide which drafts get deleted. So if you run the cron every 10 minutes, it may help nothing. I also think the cron already runs at least hourly.

The solution would be to be able to set the "Draft holding time" in the ACP options. If this option is not available, you have to manually edit the code or request an add-on to change the timestamps.

I also would prefer a button to help the users deleting unwanted drafts.
 
Just coming back to this - because I've been "haunted" by cached drafts following me around various threads most of today - you can remove the cached content by highlighting it, pressing delete, and then clicking Post Reply.

You get a warning you can't submit an empty post but it does "clear" the cache (presumably by refreshing it with the new [empty] content). ;)
Apparently this didn't work for me. I randomly quoted someone and just left it there. Later I came back to that thread and noticed the saved draft. I didn't plan on replying and I had read your post earlier so I thought I know I'll do what Clickfinity said, delete the text and just click post reply. It actually ended up posting my draft. :whistle:
 
I hope the Save Drafts function will have a master enable/disable switch in the Admin CP.
 
Correct.
Auto saving has not been removed/disabled.

If you wait you will see the "Draft saved" message pop up.
 
Back
Top Bottom