CACHE_BACKEND = 'locmem:///' <-> 'locmem://'

40 views
Skip to first unread message

jedie

unread,
Nov 19, 2009, 5:52:15 AM11/19/09
to Django developers
What is the right "spelling": 'locmem:///' or 'locmem://' ???

In the docu is three "/" [1]
but in global_settings.py is two "/" [2]

[1] http://docs.djangoproject.com/en/dev/topics/cache/#local-memory-caching
[2] http://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py?rev=11709#L329

Sorry, if this is nonrelevant ;)

Mfg.

Jens Diemer

Russell Keith-Magee

unread,
Nov 19, 2009, 6:25:43 AM11/19/09
to django-d...@googlegroups.com
On Thu, Nov 19, 2009 at 6:52 PM, jedie <google...@jensdiemer.de> wrote:
> What is the right "spelling": 'locmem:///' or 'locmem://' ???
>
> In the docu is three "/" [1]
> but in global_settings.py is two "/" [2]
>
> [1] http://docs.djangoproject.com/en/dev/topics/cache/#local-memory-caching
> [2] http://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py?rev=11709#L329

In practice, it actually doesn't matter. Both are parsed the same by
the cache backend.

However, for consistency, we should pick one and stick to it. I've
updated the docs in r11750 and r11751. Thanks for the report.

Yours,
Russ Magee %-)
Reply all
Reply to author
Forward
0 new messages