I have a Django site where a strange error occurs.
On the site, they can add "publications", which basically coincides with a blog entry under a different name.
Things become strange when they modify an existing message. They first change it in the admin, and when they go to the site, the change is not visible. For example, if the old version was cached.
In fact, at the beginning I was sure that it was a browser caching error. But after some testing, things got a little weirder.
I found out that clearing the browser cache or using another browser does not solve the problem, but it is interesting that it switches between the old version and the modified version when updating.
So, if the message body was “Hello World” and I change it to “Goodbye cruel world” and then go to the site and refresh the page several times, I will see “Hello World”, then “Goodbye“ cruel world ”, then “Hello World,” etc. no matter how long I keep doing this.
But that does not stop there. after about 24 hours, everything returns to its place and works fine. No reshuffle anymore, the site is sticking to the new version ...
I almost got speechless because I built more than 50 other Django sites using the same server and I have never had this problem before.
I am using the latest django (1.3) with MySQL DB and caching is not enabled ..
Any ideas?
Edit : gracefully restarting Apache solves the problem .. but restarting apache after each update is not the biggest thing.
Update . I just configured my dev environement and I found out that the error is much more persistent with the dev server. A modified statement will not be displayed until I kill / restart the dev server, no matter how often I update or clear my cache.