pagemachine / typo3-opcache-control
PHP Opcache management for TYPO3
Installs: 33 559
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 5
Forks: 2
Open Issues: 6
Type:typo3-cms-extension
Requires
- php: ^7.4 || ^8.0
- typo3/cms-core: ^10.4 || ^11.5 || ^12.4
- typo3/cms-extbase: ^10.4 || ^11.5 || ^12.4
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- codeception/codeception: ^4.0 || ^5.0
- codeception/module-asserts: ^2.0 || ^3.0
- codeception/module-cli: ^2.0
- ergebnis/composer-normalize: ^2.3
- helhum/typo3-console: ^6.0 || ^7.0 || ^8.0
- php-parallel-lint/php-console-highlighter: ^1.0.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^1.0.0
- saschaegerer/phpstan-typo3: ^1.0.0
- slevomat/coding-standard: ^8.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2024-11-11 11:14:29 UTC
README
Provides CLI commands for PHP Opcache management within TYPO3. This is essential to e.g. reset the Opcache on deployments.
Since the web Opcache is managed, resetting the Opcache is essentially the same as the related action in the TYPO3 backend.
Installation
Via Composer:
composer require pagemachine/typo3-opcache-control
Site setup
The CLI commands internally perform real HTTP requests. For this all site configurations must use full URLs for their base
. A basic /
will not work:
-base: / +base: https://example.org/
The same goes for baseVariants
and %env()%
placeholders which can be used for different URLs per environment.
Usage
Use the TYPO3 CLI or TYPO3 Console to execute Opcache control commands.
The Opcache status can be checked using the opcache:status
command:
$ typo3cms opcache:status
+---------------------------+------------------+
| opcache_enabled | true |
# ...
The Opcache can be reset using the opcache:reset
command:
$ typo3cms opcache:reset
Success: opcache reset
The commands are executed with real HTTP requests, thus at least one valid site must be set up.
Testing
All tests can be executed with the shipped Docker Compose definition:
docker-compose run --rm app composer build