queo/typo3-software-cache

Software cache for typo3 projects.

v1.1.0 2019-07-05 16:12 UTC

This package is auto-updated.

Last update: 2024-04-29 03:10:24 UTC


README

Build Status

TYPO3 Software Cache

TL;DR Software based library to cache TYPO3 Requests.

Allgemeine Informationen

Ansprechpartner

Entwickler:

  • [Stephan Lindner]
  • [Ralf Michael]

Konzept

to be done

Installation

For easy installation add an index.php.dist file to your project and add the following commands to your composer.json

"chmod 654 ./vendor/queo/typo3-software-cache/src/Scripts/installCache.sh",
"./vendor/queo/typo3-software-cache/src/Scripts/installCache.sh index.php.dist",

We added an starting point with a simple index.php.dist in the base folder, you can use for your first steps or easy websites. It will cache the requests in the filesystem.

Qualitätssicherung

Unittests

bin/phpunit

Codemetriken erstellen

Phpmetrics global installieren

composer global require phpmetrics/phpmetrics:~2

Bericht für Metriken erzeugen

phpmetrics --report-html=build/metric --git --quiet src\

Weiterentwicklung

Goldene Regeln:

  • SOLID Prinzipien einhalten!
  • Metriken beachten

Anleitung

Cache über Typo3-Backend leeren

Um den Cache über das Typo3-Backend leeren zu können, muss in der ext_localconf der Site-Extension folgender Hook ergänzt werden:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =  \Queo\Typo3\SoftwareCache\Service\CacheManagementService::class . '->clearCache';

FAQ

42