Skip to content

Commit 881b521

Browse files
committed
turning cache off
1 parent 08e9473 commit 881b521

32 files changed

+320
-0
lines changed

caching/bg/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ services:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | хранилище
456456

457457

458+
Изключване на кеша .[#toc-turning-off-cache]
459+
============================================
460+
461+
Един от начините да изключите кеширането в приложението е да зададете съхранение на [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Тази настройка не влияе на кеширането на шаблоните в Latte или контейнера DI, тъй като тези библиотеки не използват услугите на nette/caching и управляват кеша си самостоятелно. Освен това [не е необходимо |nette:troubleshooting#how-to-disable-cache-during-development] техният кеш да [бъде изключен |nette:troubleshooting#how-to-disable-cache-during-development] в режим на разработка.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/cs/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Tyto služby se přidávají do DI kontejneru:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | úložiště
456456

457457

458+
Vypnutí cache
459+
=============
460+
461+
Jednou z možností, jak vypnout cache v aplikaci, je nastavit jako úložiště [DevNullStorage|#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Toto nastavení nemá vliv na kešování šablon v Latte nebo DI kontejeru, protože tyto knihovny nevyužívají služeb nette/caching a spravují si cache samostatně. Jejich cache ostatně [není potřeba |nette:troubleshooting#jak-vypnout-cache-behem-vyvoje] ve vývojářském režimu vypínat.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/de/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Diese Dienste werden dem DI-Container hinzugefügt:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Cache ausschalten .[#toc-turning-off-cache]
459+
===========================================
460+
461+
Eine Möglichkeit, die Zwischenspeicherung in der Anwendung zu deaktivieren, besteht darin, den Speicher auf [DevNullStorage |#DevNullStorage] zu setzen:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Diese Einstellung wirkt sich nicht auf die Zwischenspeicherung von Vorlagen in Latte oder dem DI-Container aus, da diese Bibliotheken nicht die Dienste von nette/caching nutzen und ihren Cache unabhängig verwalten. Außerdem [muss |nette:troubleshooting#how-to-disable-cache-during-development] ihr Cache im Entwicklungsmodus [nicht abgeschaltet werden |nette:troubleshooting#how-to-disable-cache-during-development].
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/el/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ services:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Απενεργοποίηση της κρυφής μνήμης .[#toc-turning-off-cache]
459+
==========================================================
460+
461+
Ένας από τους τρόπους για να απενεργοποιήσετε την προσωρινή αποθήκευση στην εφαρμογή είναι να ορίσετε τον αποθηκευτικό χώρο σε [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Αυτή η ρύθμιση δεν επηρεάζει την προσωρινή αποθήκευση των προτύπων στο Latte ή στο DI container, καθώς αυτές οι βιβλιοθήκες δεν χρησιμοποιούν τις υπηρεσίες της nette/caching και διαχειρίζονται την προσωρινή τους μνήμη ανεξάρτητα. Επιπλέον, η κρυφή μνήμη τους [δεν χρειάζεται να απ |nette:troubleshooting#how-to-disable-cache-during-development] ενεργοποιηθεί στη λειτουργία ανάπτυξης.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/en/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ These services are added to the DI container:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Turning Off Cache
459+
=================
460+
461+
One of the ways to turn off caching in the application is to set the storage to [DevNullStorage|#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
This setting does not affect the caching of templates in Latte or the DI container, as these libraries do not use the services of nette/caching and manage their cache independently. Moreover, their cache [does not need to be turned off |nette:troubleshooting#how-to-disable-cache-during-development] in development mode.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/es/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Estos servicios se añaden al contenedor DI:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | Repositorio
456456

457457

458+
Cómo desactivar la caché .[#toc-turning-off-cache]
459+
==================================================
460+
461+
Una de las formas de desactivar el almacenamiento en caché en la aplicación es establecer el almacenamiento a [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Esta configuración no afecta al almacenamiento en caché de las plantillas en Latte o el contenedor DI, ya que estas bibliotecas no utilizan los servicios de nette/caching y gestionan su caché de forma independiente. Además, [no es necesario desactivar |nette:troubleshooting#how-to-disable-cache-during-development] su caché en el modo de desarrollo.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/fr/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Ces services sont ajoutés au conteneur DI :
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Désactiver le cache .[#toc-turning-off-cache]
459+
=============================================
460+
461+
L'une des façons de désactiver la mise en cache dans l'application est de définir le stockage sur [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Ce paramètre n'affecte pas la mise en cache des modèles dans Latte ou le conteneur DI, car ces bibliothèques n'utilisent pas les services de nette/caching et gèrent leur cache de manière indépendante. De plus, leur cache n ['a pas besoin d'être désactivé |nette:troubleshooting#how-to-disable-cache-during-development] en mode développement.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/hu/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Ezek a szolgáltatások hozzáadódnak a DI konténerhez:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Cache kikapcsolása .[#toc-turning-off-cache]
459+
============================================
460+
461+
A gyorsítótár kikapcsolásának egyik módja az alkalmazásban a tároló [DevNullStorage |#DevNullStorage] értékre állítása:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Ez a beállítás nem befolyásolja a Latte vagy a DI konténer sablonjainak gyorsítótárazását, mivel ezek a könyvtárak nem használják a nette/caching szolgáltatásait, és önállóan kezelik a gyorsítótárukat. Ráadásul a gyorsítótárukat [nem kell kikapcsolni |nette:troubleshooting#how-to-disable-cache-during-development] fejlesztési módban.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/it/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Questi servizi vengono aggiunti al contenitore DI:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repository
456456

457457

458+
Disattivare la cache .[#toc-turning-off-cache]
459+
==============================================
460+
461+
Uno dei modi per disattivare la cache nell'applicazione è impostare lo storage su [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Questa impostazione non influisce sulla cache dei modelli in Latte o nel contenitore DI, poiché queste librerie non utilizzano i servizi di nette/caching e gestiscono la loro cache in modo indipendente. Inoltre, la loro cache [non deve essere disattivata |nette:troubleshooting#how-to-disable-cache-during-development] in modalità di sviluppo.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

caching/pl/@home.texy

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,17 @@ Usługi te są dodawane do kontenera DI:
455455
| `cache.storage` | [api:Nette\Caching\Storage] | repozytorium
456456

457457

458+
Wyłączanie pamięci podręcznej .[#toc-turning-off-cache]
459+
=======================================================
460+
461+
Jednym ze sposobów wyłączenia buforowania w aplikacji jest ustawienie pamięci masowej na [DevNullStorage |#DevNullStorage]:
462+
463+
```neon
464+
services:
465+
cache.storage: Nette\Caching\Storages\DevNullStorage
466+
```
467+
468+
Ustawienie to nie wpływa na buforowanie szablonów w Latte lub kontenerze DI, ponieważ biblioteki te nie korzystają z usług nette/caching i zarządzają swoją pamięcią podręczną niezależnie. Co więcej, ich pamięć podręczna nie musi być [wyłączona |nette:troubleshooting#how-to-disable-cache-during-development] w trybie deweloperskim.
469+
470+
458471
{{leftbar: nette:@menu-topics}}

0 commit comments

Comments
 (0)