#32176: Filesystem caching documentation incorrect -------------------------------------+------------------------------------- Reporter: Carles Pina Estany | Owner: Carles | Pina Estany Type: Bug | Status: assigned Component: Documentation | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Description changed by Carles Pina Estany:
Old description: > In: https://docs.djangoproject.com/en/3.1/topics/cache/#filesystem- > caching > > It says that {{{LOCATION}}} needs to exist. But the code creates it if it > doesn't exist: > https://github.com/django/django/blob/354c1524b38c9b9f052c1d78dcbfa6ed5559aeb3/django/core/cache/backends/filebased.py#L116 > called from > https://github.com/django/django/blob/master/django/core/cache/backends/filebased.py#L23 > > Current documentation: > {{{Make sure the directory pointed-to by this setting exists and is > readable and writable by the system user under which your Web server > runs. Continuing the above example, if your server runs as the user > apache, make sure the directory /var/tmp/django_cache exists and is > readable and writable by the user apache.}}} > > PR coming soon. New description: In: https://docs.djangoproject.com/en/3.1/topics/cache/#filesystem-caching It says that {{{LOCATION}}} needs to exist. But the code creates it if it doesn't exist: https://github.com/django/django/blob/354c1524b38c9b9f052c1d78dcbfa6ed5559aeb3/django/core/cache/backends/filebased.py#L116 called from https://github.com/django/django/blob/master/django/core/cache/backends/filebased.py#L23 Current documentation: {{{Make sure the directory pointed-to by this setting exists and is readable and writable by the system user under which your Web server runs. Continuing the above example, if your server runs as the user apache, make sure the directory /var/tmp/django_cache exists and is readable and writable by the user apache.}}} PR: https://github.com/django/django/pull/13649 -- -- Ticket URL: <https://code.djangoproject.com/ticket/32176#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.2a6172f10f36b27849f724d8c06a35d8%40djangoproject.com.