Skip to content

Commit 24cc8c8

Browse files
committed
feat: add a filter to get cache path.
1 parent 9663e64 commit 24cc8c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/class-nginx-helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public function __construct() {
8585
}
8686

8787
if ( ! defined( 'RT_WP_NGINX_HELPER_CACHE_PATH' ) ) {
88-
define( 'RT_WP_NGINX_HELPER_CACHE_PATH', '/var/run/nginx-cache' );
88+
$cache_path = apply_filters( 'rt_wp_nginx_helper_cache_path', '/var/run/nginx-cache' );
89+
define( 'RT_WP_NGINX_HELPER_CACHE_PATH', $cache_path );
8990
}
9091

9192
$this->load_dependencies();

0 commit comments

Comments
 (0)