Got rid of the repost error

Written by: Tony | Date: Wednesday, December 27th, 2017
Categories: Development

On the home page I had a “repost error” message for when people would hit the back button or somehow double post from the home page. The way it worked was to check the db for a previous match to the topic/reply content and if it found a match it would throw an error at the user.  The problem with that is two-fold. As the messages table gets bigger, it will take longer and longer for that “check” to happen.  Worse, if someone posts the same message on different days, even years apart, the message will still happen.  It was a good idea to prevent some irritating things from happening, but it turned out to be more irritating for me if I type “awesome” as a reply. That won’t work since I’ve already written that..

Long story short, that “feature” is gonzo.


Comments are closed.

  • Discussion Forum Stats

  • Users:
    3,478
    Topics:
    23,105
    Replies:
    125,449
    Total Posts:
    148,554
  • Polls

    Rate your confidence going into 2022 Utah Football Pac-12 conference play

    • Confident (66%, 56 Votes)
    • Neutral (16%, 14 Votes)
    • Very Confident (11%, 9 Votes)
    • Not Confident (7%, 6 Votes)
    • We're *****d (0%, 0 Votes)

    Total Voters: 85

    Loading ... Loading ...
  • Recently Active Members

    Profile picture of RedMenace
    Profile picture of fortUTEnate
    Profile picture of Utephoria
    Profile picture of Stone
    Profile picture of dystopiamembrane
    Profile picture of Mr.BozaksBigToe
    Profile picture of highlandute7
    Profile picture of Larry B
    Profile picture of stbone
    Profile picture of UofUSportsGuy
    Profile picture of salty-ute
    Profile picture of UteDuke
    Profile picture of RedLine
    Profile picture of CivilUte
    Profile picture of utahman3431
    Profile picture of UteBacker
    Profile picture of Charlie Foxtrot
    Profile picture of utefansince79
    Profile picture of taragon85
    Profile picture of kazute
    Profile picture of Herk