APC User Cache: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „{{Geschwindigkeit}} {{Neu}} {{Zum Überarbeiten}} ==About using APCu in Moodle== APC provides a shared application cache that is usually very limited in size…“)
 
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:
{{Neu}}
{{Neu}}
{{Zum Überarbeiten}}
{{Zum Überarbeiten}}
==About using APCu in Moodle==
==APC User Cache in Moodle==
APC ist ein Anwendungs-Cache, der normalerweise sehr begrenzt in der Größe ist, aber eine exzellente Geschwindigkeit hat. Der APC User Cache bietet keine Möglichkeit, mehrer Instanzen von sich zu konfigurieren, so dass Sie in Moodle nur eine Instanz anlegen können. Wegen der hohen Geschwindigkeit, aber geringen Größe empfehlen wir, nur kleine kritische Caches in den APC auszulagern.


APC provides a shared application cache that is usually very limited in size but provides excellent performance. It doesn't provide the ability to configure multiple instances of itself and as such within Moodle you are only able to create a single APC cache store instance. Because of its incredible performance but very limited size it is strongly suggested that you map only small, crucial caches to the APC store.
Ein weiterer wichtiger Punkt beim APC ist, dass er kein Garbage Cleaning und kein Storage Reclamation hat. D.h. gespeicherte Daten verbleiben im Cache, bis der APC neu gestartet oder der Speicher gelöscht wird. Obendrein werden Anfragen zum Speichern von Informationen nicht bearbeitet, sobald der Cache voll ist. Aus diesem Grund müssen Sie den APC regelmäßig neu starten oder den Speicher löschen. Außerdem empfiehlt es sich, einen weiteren Anwendungs-Cache bereitzustellen, der Anfragen entgegen nehmen kann, wenn der APC voll ist.  


Another important thing to understand about the APC store is that it provides no garbage cleaning, or storage reclamation facilities. As such cache data will persist there until APC is restarted or the store is purged. On top of that once the store is full requests to store information within the cache fail until there is once more sufficient space. Because of this it is recommended that you regularly purge or restart APC. Also recommended is to map a secondary application cache instance to any definition with the APC mapped. This ensures that if it does indeed full up that an alternative cache is available.
==APC installieren==
Wir empfehlen, die APC Dokumentation http://www.php.net/manual/en/book.apc.php zu lesen, bevor Sie das Plugin verwenden. Diese Dokumentation empfiehlt, die PECL APC Erweiterung zu installieren. Die Erweiterung finden Sie auf der Webseitee  http://pecl.php.net/package/apc. Informationen zur Installation der PECL Erweiterungen finden Sie auf der Seite http://www.php.net/manual/en/install.pecl.php.


==Installation of APC==
Wenn Sie Linux verwenden, können Sie das php5-apc Paket installieren. Wenn Sie PHP unter Linux mit Hilfe eines Paket-Managers installiert haben, dann geht das sehr einfach.


It is recommended that you read through the APC documentation http://www.php.net/manual/en/book.apc.php before beginning with this plugin. The above documentation recommends installing the PECL APC extension that can be found at http://pecl.php.net/package/apc. http://www.php.net/manual/en/install.pecl.php contains information on installing PECL extensions.
Vergessen Sie nicht, nach der Installation den Webserver neu zu starten.


Its also worth noting for this those using Linux that there is usually a php5-apc package that can be installed very easily. If you have installed PHP under Linux through a package manager then this will be by far the easiest way to proceed.
==APC in Moodle bereitstellen==
 
Als erstes müssen Sie eine APC Cache Speicher-Instanz anlegen.  
Once installed ensure you restart your web server before proceeding.
*Melden Sie sich als Administrator/in in Moodle an und gehen Sie auf die Seite ''[[Einstellungen-Block|Einstellungen}} > Website-Administration > Plugins > Caching > Konfiguration''.
 
==Making use of APC within Moodle==
 
The first thing you will need to do is create an APC cache store instance. This is done through the Cache configuration interface.
 
# Log in as an administrator and go to 'Caching > Configuration' in the Site administration.
# Locate the APC row within the Installed cache stores table. You should see an "Add instance" link within that row. If not then the APC extension has not being installed correctly.
# Locate the APC row within the Installed cache stores table. You should see an "Add instance" link within that row. If not then the APC extension has not being installed correctly.
# Click "Add instance".
# Click "Add instance".

Version vom 19. Dezember 2016, 10:55 Uhr

Neue Funktionalität
in Moodle 3.7!

Baustelle.png Diese Seite muss überarbeitet werden. Greif zu!
Wenn du dich um diesen Artikel kümmern willst, dann kennzeichne das, indem du die Vorlage {{Überarbeiten}} durch die Vorlage {{ÜberarbeitenVergeben}} ersetzt.
Wenn du mit deiner Arbeit fertig bist, dann entferne die Vorlage aus dem Artikel.
Danke für deine Mitarbeit!


APC User Cache in Moodle

APC ist ein Anwendungs-Cache, der normalerweise sehr begrenzt in der Größe ist, aber eine exzellente Geschwindigkeit hat. Der APC User Cache bietet keine Möglichkeit, mehrer Instanzen von sich zu konfigurieren, so dass Sie in Moodle nur eine Instanz anlegen können. Wegen der hohen Geschwindigkeit, aber geringen Größe empfehlen wir, nur kleine kritische Caches in den APC auszulagern.

Ein weiterer wichtiger Punkt beim APC ist, dass er kein Garbage Cleaning und kein Storage Reclamation hat. D.h. gespeicherte Daten verbleiben im Cache, bis der APC neu gestartet oder der Speicher gelöscht wird. Obendrein werden Anfragen zum Speichern von Informationen nicht bearbeitet, sobald der Cache voll ist. Aus diesem Grund müssen Sie den APC regelmäßig neu starten oder den Speicher löschen. Außerdem empfiehlt es sich, einen weiteren Anwendungs-Cache bereitzustellen, der Anfragen entgegen nehmen kann, wenn der APC voll ist.

APC installieren

Wir empfehlen, die APC Dokumentation http://www.php.net/manual/en/book.apc.php zu lesen, bevor Sie das Plugin verwenden. Diese Dokumentation empfiehlt, die PECL APC Erweiterung zu installieren. Die Erweiterung finden Sie auf der Webseitee http://pecl.php.net/package/apc. Informationen zur Installation der PECL Erweiterungen finden Sie auf der Seite http://www.php.net/manual/en/install.pecl.php.

Wenn Sie Linux verwenden, können Sie das php5-apc Paket installieren. Wenn Sie PHP unter Linux mit Hilfe eines Paket-Managers installiert haben, dann geht das sehr einfach.

Vergessen Sie nicht, nach der Installation den Webserver neu zu starten.

APC in Moodle bereitstellen

Als erstes müssen Sie eine APC Cache Speicher-Instanz anlegen.

  • Melden Sie sich als Administrator/in in Moodle an und gehen Sie auf die Seite [[Einstellungen-Block|Einstellungen}} > Website-Administration > Plugins > Caching > Konfiguration.
  1. Locate the APC row within the Installed cache stores table. You should see an "Add instance" link within that row. If not then the APC extension has not being installed correctly.
  2. Click "Add instance".
  3. Give the new instance a name and click "Save changes". You should be directed back to the configuration page.
  4. Locate the Configured cache store instances table and ensure there is now a row for you APC instance and that it has a green tick in the ready column.

Once done you have an APC instance that is ready to be used. The next step is to map definitions to make use of the APC instance.

  1. Locate the known cache definitions table. This table lists the caches being used within Moodle at the moment. For each cache you should be able to Edit mappings.
  2. Find a cache that you would like to map to the APC instance and click Edit mappings.
  3. One the next screen proceed to select your APC instance as the primary cache and save changes.
  4. Back in the known cache definitions table you should now see your APC instance listed under the store mappings for the cache you had selected. You can proceed to map as many or as few cache definitions to the APC instance as you see fit.

That is it! you are now using APC within Moodle.

Siehe auch