Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ Forum ➜ Problems ➜ Edits to a post are missing, though the "Amended on <date>" is visible.

Edits to a post are missing, though the "Amended on <date>" is visible.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Daniel P   USA  (97 posts)  Bio
Date Mon 26 Mar 2018 03:43 PM (UTC)
Message
I recently edited a post I made last week, and noticed that even with a hard refresh from the browser, all I see is that


  1. The post was edited with the "Ammended on Mon 26 Mar, 2018" but ...
  2. The changes I made (i.e. added a comment with an [edit] tag to http://mushclient.com/forum/bbshowpost.php?bbsubject_id=14209) are not actually visible.


Editing the post again shows that my changes have been correctly captured, though. Is this an issue with the software, or is there some new approval process to post edits?
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #1 on Mon 26 Mar 2018 04:50 PM (UTC)
Message
Weird. I opened your post to edit, and indeed I saw your edit content secretly hiding in there. But then when I saved it, everything now shows up.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Daniel P   USA  (97 posts)  Bio
Date Reply #2 on Mon 26 Mar 2018 04:57 PM (UTC)
Message
Odd. Sounds like a permissions issue might have gotten changed somewhere in the forum software.
Top

Posted by Nick Gammon   Australia  (23,057 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 26 Mar 2018 09:11 PM (UTC)

Amended on Mon 26 Mar 2018 09:12 PM (UTC) by Nick Gammon

Message
There was a change to the forum recently. Posts are now "cached" in a HTML version to save reworking all the forum codes every time they are viewed.

If the cached version was not updated then you would see the old version even if you edit it and see the new version. The cached text is not visible to you (except indirectly, when you view the post).

It looks like the caching failed to update in your case. Let me know if it happens again.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,057 posts)  Bio   Forum Administrator
Date Reply #4 on Mon 26 Mar 2018 09:15 PM (UTC)
Message
There might be a race condition there. The cache is updated the first time the post is viewed (it was easier to do it that way) which might have somehow got the cached HTML replaced by the older version.

I had better do the job properly and update the cache at the exact time that the edit is aved.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,057 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 26 Mar 2018 11:04 PM (UTC)
Message
I've reworked the caching so that it is done at post amend time, not display time. This *should* fix the problem.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Daniel P   USA  (97 posts)  Bio
Date Reply #6 on Tue 27 Mar 2018 07:25 PM (UTC)

Amended on Tue 27 Mar 2018 07:26 PM (UTC) by Daniel P

Message
Let's do a short test...

[EDIT] by adding this after the fact.
[EDIT] Yep. Seems to be fixed. Thanks, guys!
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,234 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.