findjango

Search

1-10 of 167 results

  1. Expire cache specific to a django view

    Often you might encounter situation where you may need to expire cache for a POST request when user updates a field. Here is a snippet I use to expire cache for that specific key.

    www.yashh.com/blog/2008/nov/08/expire-cache-specific-django-view/ mark as irrelevant
  2. Django snippets: Expire page from cache

    Expire page from cache. 1 2 3 4 5 6 7 8 9 10. from django.core.cache import cache from ... A simple helper function that clears the cache for a given URL, assuming no headers. ...

    djangosnippets.org/snippets/936/ mark as irrelevant
  3. Django | Django's cache framework | Django documentation

    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. ... cache.get('my_key', 'has expired') 'has expired' ...

    docs.djangoproject.com/en/1.0/topics/cache/ mark as irrelevant
  4. Django | Django's cache framework | Django Documentation

    To cache something is to save the result of an expensive calculation ... cache.get('some_other_key') None # Wait 30 seconds for 'my_key' to expire...

    www.djangoproject.com/documentation/0.96/cache/ mark as irrelevant
  5. Django snippets: Cache Manager

    I've kept original methods intact, to have an dual access, when you really, really must have frest data from the DB, and you can't wait for cache to expire. ...

    djangosnippets.org/snippets/502/ mark as irrelevant
  6. Django | Documentation (version 0.90) | Cache API

    You can cache the output of entire pages, you can cache only the pieces that are ... page changed -- simply because the cache copy isn't yet expired. ...

    www.djangoproject.com/documentation/0_90/cache/ mark as irrelevant
  7. #9595 (Add support for cache to not expire) - Django - Trac

    The path to the file is django/core/cache/backends/memcached.py. ... There's some argument for allowing "don't expire" in the cache backend, but it needs a different way of ...

    code.djangoproject.com/ticket/9595 mark as irrelevant
  8. Django: Ticket #9595 (Add support for cache to not expire)

    Django: Ticket #9595 (Add support for cache to not expire) comment added; attachment set. comment added; needs_better_patch, needs_tests, needs_docs set ...

    code.djangoproject.com/ticket/9595?format=rss mark as irrelevant
  9. Django | How to use sessions | Django documentation

    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. ... of sending everything through the file or database cache backends. ...

    docs.djangoproject.com/en/dev/topics/http/sessions/ mark as irrelevant
  10. Django snippets: Feed Reader Inclusion Tag with Caching

    ... exist, make sure it gets created cache_age = 0 #is cache expired? ... using cached file pass #load feed from cache feed = feedparser.parse(open(CACHE_FILE)) posts = [] for i ...

    djangosnippets.org/snippets/384/ mark as irrelevant

Code by Will Larson. Design by Kevin Fricovsky. All Rights Reserved, 2009.

Add Findjango as Search Provider (Firefox)