Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
446b50b9
Kaydet (Commit)
446b50b9
authored
Ara 23, 2014
tarafından
Frankie Robertson
Kaydeden (comit)
Tim Graham
Ara 23, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX
üst
061caa5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
settings.txt
docs/ref/settings.txt
+7
-4
cache.txt
docs/topics/cache.txt
+5
-3
No files found.
docs/ref/settings.txt
Dosyayı görüntüle @
446b50b9
...
@@ -283,7 +283,8 @@ CACHE_MIDDLEWARE_ALIAS
...
@@ -283,7 +283,8 @@ CACHE_MIDDLEWARE_ALIAS
Default: ``default``
Default: ``default``
The cache connection to use for the cache middleware.
The cache connection to use for the :ref:`cache middleware
<the-per-site-cache>`.
.. setting:: CACHE_MIDDLEWARE_KEY_PREFIX
.. setting:: CACHE_MIDDLEWARE_KEY_PREFIX
...
@@ -292,7 +293,9 @@ CACHE_MIDDLEWARE_KEY_PREFIX
...
@@ -292,7 +293,9 @@ CACHE_MIDDLEWARE_KEY_PREFIX
Default: ``''`` (Empty string)
Default: ``''`` (Empty string)
The cache key prefix that the cache middleware should use.
A string which will be prefixed to the cache keys generated by the :ref:`cache
middleware <the-per-site-cache>`. This prefix is combined with the
:setting:`KEY_PREFIX <CACHES-KEY_PREFIX>` setting; it does not replace it.
See :doc:`/topics/cache`.
See :doc:`/topics/cache`.
...
@@ -303,8 +306,8 @@ CACHE_MIDDLEWARE_SECONDS
...
@@ -303,8 +306,8 @@ CACHE_MIDDLEWARE_SECONDS
Default: ``600``
Default: ``600``
The default number of seconds to cache a page
when the caching middleware or
The default number of seconds to cache a page
for the :ref:`cache middleware
``cache_page()`` decorator is used
.
<the-per-site-cache>`
.
See :doc:`/topics/cache`.
See :doc:`/topics/cache`.
...
...
docs/topics/cache.txt
Dosyayı görüntüle @
446b50b9
...
@@ -436,6 +436,8 @@ of 60 seconds, and a maximum capacity of 1000 items::
...
@@ -436,6 +436,8 @@ of 60 seconds, and a maximum capacity of 1000 items::
Invalid arguments are silently ignored, as are invalid values of known
Invalid arguments are silently ignored, as are invalid values of known
arguments.
arguments.
.. _the-per-site-cache:
The per-site cache
The per-site cache
==================
==================
...
@@ -562,9 +564,9 @@ setting for the middleware. It can be used like this::
...
@@ -562,9 +564,9 @@ setting for the middleware. It can be used like this::
def my_view(request):
def my_view(request):
...
...
The
two settings can also be combined. If you specify a ``cache`` *and*
The
``key_prefix and ``cache`` arguments may be specified together. The
a ``key_prefix``, you will get all the settings of the requested cache
``key_prefix`` argument and the :setting:`KEY_PREFIX <CACHES-KEY_PREFIX>`
alias, but with the key_prefix overridden
.
specified under :setting:`CACHES` will be concatenated
.
Specifying per-view cache in the URLconf
Specifying per-view cache in the URLconf
----------------------------------------
----------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment