PHP code example of rtcamp / nginx-helper
1. Go to this page and download the library: Download rtcamp/nginx-helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rtcamp / nginx-helper example snippets
define( 'RT_WP_NGINX_HELPER_REDIS_HOSTNAME', '10.0.0.1' );
define( 'RT_WP_NGINX_HELPER_REDIS_PORT', '6000' );
define( 'RT_WP_NGINX_HELPER_REDIS_PREFIX', 'page-cache:' );
define( 'RT_WP_NGINX_HELPER_REDIS_UNIX_SOCKET', '/var/run/redis/redis.sock' );
define( 'RT_WP_NGINX_HELPER_REDIS_USERNAME', 'admin' );
define( 'RT_WP_NGINX_HELPER_REDIS_PASSWORD', 'admin' );