User Controls

ATTN: Lanny

  1. #21
    I'm guessing he threw the "banned" tag on his title to be funny
  2. #22
    -SpectraL coward [the spuriously bluish-lilac bushman]
    It's just because he's hasty and sloppy and impulsive and doesn't really think anything out.
  3. #23
    Originally posted by Jυicebox I'm guessing he threw the "banned" tag on his title to be funny

    is it funny ?
  4. #24
    Originally posted by vindicktive vinny is it funny ?

    I don't know, you tell me

    You're the only other person he's done it to
  5. #25
    Originally posted by Jυicebox I don't know, you tell me

    You're the only other person he's done it to

    really, i dont remember,
  6. #26
    Ghost Black Hole
    it's clearly an error
  7. #27
    -SpectraL coward [the spuriously bluish-lilac bushman]
    Instead of just deleting the ban, he should have first closed the ban, by adjusting the end date (restoring the usertitle), and then deleted the ban from the ban list.
  8. #28
    Star Trek VI: The Undiscovered Country Dark Matter [my scoffingly uncritical tinning]
    Originally posted by -SpectraL Instead of just deleting the ban, he should have first closed the ban, by adjusting the end date (restoring the usertitle), and then deleted the ban from the ban list.

    ITT Lanny gets schooled in how to use his own software
  9. #29
    The following users say it would be alright if the author of this post didn't die in a fire!
  10. #30
    Sudo Black Hole [my hereto riemannian peach]
    Originally posted by OG_GREENPLASTIC_JOHNSON_III

    Now that I'm looking at this picture it looks more like shadowing than a hellacious neckbeard
  11. #31
    Lanny Bird of Courage
    Originally posted by whoami I would guess lanny forgot to add a function to change the user title back when a ban is reversed. Probably hasn't had to take said action before. Could verify but too lazy.

    Yeah, pretty much. The "(banned)" doesn't get written to the db, there's presentation logic for building the user title strings based on things like being banned or having a custom username. But it has to touch the DB to do which makes it too slow to do 20-50 times per page so the UT strings get cached in redis for like a couple days I think. We normally invalidate it on any change to the username but deleting a ban goes through the admin interface so normal app logic like cache invalidation never happens and deleting a ban leaves you in a consistent state in the db but with the "(banned)" thing until your chached usertitle expires.
  12. #32
    Star Trek VI: The Undiscovered Country Dark Matter [my scoffingly uncritical tinning]
    You started using redis?
  13. #33
    Lanny Bird of Courage
    yeah, through django's cache adapter. The locmem backend is fast but when you're running multiple processes (like we do here) you can't do invalidation and have to maintain N separate caches
  14. #34
    mashlehash victim of incest [my perspicuously dependant flavourlessness]
    ...BAN
Jump to Top