Edit shows first version of post
|Reported by:||thicke||Owned by:|
|Component:||Administration||Keywords:||admin post edit|
I am having a problem of the a previous version of a post showing up when I edit a post. I posted this on the support forums and found a fix, but it's just a bandaid. One thing to note is that I am not using the WYSIWYG editor. From my testing, it looks like disabling the cache fixes the problem. Kafkaesqui stated that the admin area should not be cached. I would agree. ;)
Here's the info from the forums:
My original post on the forums
I am having the same problem. No matter how many times I go back and save a post, it goes back to the original version of the post (when I clicked on the "post" button).
I noticed this happening after I disabled the WYSIWYG editor. I don't know if it was happening before.
I then wondered if it might be a cache issue.
Kafkaesqui replied with this
Follow the advice from here:
and see if the problem clears. if it does, let us know that (since you should not be seeing issues with caching in admin).
This suggestion was basically to disable caching in order to rule it out.
I tried this and tested with these results
Good news and bad news....
The good news is that it looks like it's fixed.
The bad news is that it was fixed by disabling the cache.
I tested it this way:
First I disabled the cache in the config file. When I tried to edit the post it showed me the current revision of the post, instead of the original. I then reenabled cache in the config file. I edited the post, added text to it and saved it. When I tried to reedit the post, the added text was gone. I then disabled the cache in the config file again. When i opened the post in the edit window this time, the text added in the test above was there.
All this points (in my mind) to cache of at least the text in the edit box for the post admin page.
Do I need to open ticket on this? I'm not that familiar with Trac, so a point in the right direction would be appreciated if I do.
For right now, this is fixed by disabling cache. I'm not sure if I would really get any benefits from on a site as small as mine anyway.
Kafkaesqui gave me a quick howto on creating a Trac ticket and here we are. Let me know if there's anything I can do to help resolve this, especially testing.