Installs CacheTool for PHP from https://github.com/gordalina/cachetool. CacheTool allows you to work with apc
, opcache
, and the file status cache through the cli. It will connect to a fastcgi server (like php-fpm
) and operate it's cache.
None.
cachetool_download_url: http://gordalina.github.io/cachetool/downloads/cachetool.phar
The URL from which to download and install the CacheTool phar file. For PHP versions older than 7.1, this variable must be changed from the default (shown above) to https://github.com/gordalina/cachetool/blob/gh-pages/downloads/cachetool-3.2.1.phar?raw=true
(as documented in defaults/main.yml
)
None.
- hosts: web-servers
roles:
- { role: davidalger.php_cachetool, tags: php-cachetool }
This work is licensed under the MIT license. See LICENSE file for details.
This role was created in 2018 by David Alger.