|
I created a view where a user can see any question with a tag that they marked as interesting:
When I run this on my development site (sqllite) it always works. When I run it on webfaction (mysql) I notice that if I change my "interesting tags" in the sidebar and then go to the above view it still shows me questions with my old "interesting tags". logging out/in has no effect even though in the sidebar it clearly correctly saved my changes. I thought this might be a cache issue, but i have cache set to dummy://. If I just restart my webfaction server and then refresh the above view, it gives me the correct questions with the new "interesting tags". UPDATE: Instead of restarting my server, if I just want a while and then refresh the page it will give me the correct information. Seems like a cache issue to me? |
|
Depending on your django and osqa versions, there may be a problem with the cache library being loaded to soon, and sticking with some default values, so technically, your "dummy://" cache is not being dummy at all. Go to your settings.py file, there is a try/except block there, around line 30, trying to import the csrf middleware. Comment out the following line:
Restart, and you should be ready to go. Removed the import that caused this trouble, together with the whole try-except block. It's better to have caching than too much backwards compatibility.
(07 Jun '11, 18:29)
Jordan ♦♦
|
I agree that it sounds like caching. I wonder if there's any way to flush the relevant bit of cache, when the list of interesting tags is changed?
and can you find out where it's caching? I think, on webfaction, there's a chain isn't there: your osqa -> your apache -> server-wide nginx (as well as, possibly, your ISP and your browser)
ok, @Hernani answer below worked perfectly but now I have turned cache back on and it is doing the same thing again. How do I get OSQA to serve the updated data?