Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango caching bug .. even if caching is disabled
    text
    copied!<p>I have a Django site where a strange bug is occurring.</p> <p>On the site they can add "publications", which is basically the same thing as a blog post under a different name.</p> <p>Things gets weird when they modify an existing post. They first modify it in the admin and when they go on the site, the change isn't visible. Like if the old version was cached.</p> <p>In fact, at the beginning I was pretty sure it was a browser caching bug. But after some trials, things got a little weirder.</p> <p>I found out that clearing browser cache or using a different browser does not solve the problem, but rather interestingly it toggles between the old version and the modified version upon refresh.</p> <p>So if the body of the post was "Hello World" and I modify it to be "Goodbye cruel world" and then go to the site and refresh the page multiple times, I would see "Hello World", then "Goodbye cruel world", then "Hello World" and so on.. no matter how long I keep doing it.</p> <p>But it doesn't stop there .. after about 24h everything falls back into place and work normally. No permutation anymore, the site sticks to the new version...</p> <p>I'm pretty much speechless because I built well over 50 other Django sites using the same server and I never had this problem before.</p> <p>I'm using the latest django (1.3) with a MySQL DB and caching is not enabled..</p> <p>Any ideas ?</p> <p><strong>Edit</strong>: A graceful restart of Apache solve the problem .. but restarting apache after each update isn't the greatest thing..</p> <p><strong>Update</strong>: I've just re-setuped my dev environement and I found out the bug is far more acute with the dev server. The modified contend won't show up until I kill/restart the dev server, no matter how often I refresh or clear my cache..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload