Ask Your Question

live-settings value change inconsitency

asked 2012-01-02 08:56:29 -0600

str's avatar

Regarding changing something in '/settings/', I face a very strange issue. I change something (i.e. logo), then save it, but the change doesn't take effect immediately.

  • In the server side '/settings', the change doesn't showup (it shows the previous), and trying to re-edit leads to error.

  • Interestingly in the browser side, cache refresh (with cmd+R) shows up the change (new logo), but with another refresh goes back to previous state (i.e. previous logo), and this continues with each alternate 'refresh'

Anyway, after changing something in the /settings, and immediately after restarting the server solves this inconsistency. Could you point me to any simple solution/workout?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-02 10:31:22 -0600

Evgeny's avatar

You probably have a multiprocess deployment and local memory cache. With multiple processes you need to share the cache - by using either memcached or redis.

Please refer to django caching doc page for further information.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-01-02 08:56:29 -0600

Seen: 407 times

Last updated: Jan 02 '12