django-cache
django querysets + memcached: best practices
Trying to understand what happens during a django low-level cache.set() Particularly, details about what part of the queryset gets stored in memcached.[详细]
2023-04-10 00:24 分类:问答Deleting many object from cache fulfilling given condition
I\'ve got model X cons开发者_如何学编程tructed per other model Y and user U. X is stored in django-cache under key \'X_Y.id_U.id\'. Now i want to delete all models X binded to Y from cache (for all us[详细]
2023-04-08 22:40 分类:问答Asynchronous data fetching and cache handling
I\'m planning on deploying a dynamic site that needs certain tasks to be done periodically in the background, let\'s say every hour or two. The data that i need to output is strictly depending on the[详细]
2023-04-04 05:26 分类:问答Which Django Caching System is Faster: Filesystem or DB?
I know there isn\'t necessarily a clear cut between these two like there is between Memcached an DB/Filesystem, but I\'m wondering what conditions would lead to filesystem being faster than DB caching[详细]
2023-04-03 17:06 分类:问答Efficient storing a big table in Django cache
I use Django with jqGrid and loading pages via AJAX. At times, queries are very complex, and page loading is ver slow, for far pages is much slower (which is to be expected, the results often exceed 1[详细]
2023-04-02 21:00 分类:问答Django : make a variable persistent
Basically I want to make a variable persitent in Django and I don\'t know how. To be more precise, I want a user to choose a specific project when he logs in the site (via a ChoiceField for example).[详细]
2023-03-30 02:33 分类:问答How to use 2 different cache backends in Django?
I need to use memcached and file based cache. I setup my cache in settings: CACHES = { \'default\': { \'BACKEND\': \'django.core.cache.backends.filebased.FileBasedCache\',[详细]
2023-03-05 06:37 分类:问答django fragment caching for anonymous users only
I want to use django fragment caching for anonymous users, but give authenticated users fresh data. This seems to work fine:[详细]
2023-02-28 06:47 分类:问答Django: how to cache dynamic pages flexibly?
I was trying to set up cache for my Django application but it seems that Django\'s caching framework is based on TIMEOUT: set a cache and it\'ll remain valid for the TIMEOUT amount of seconds.[详细]
2023-02-21 12:23 分类:问答Django multiple caching BACKEND routers howto?
So I want to cache some data in mysql and some in memcached. at the moment I have this In my config file, but i don\'t know how to write router for cache back end.[详细]
2023-02-15 18:14 分类:问答