Skip to content

Install script fails to detect "proxy_cache_path" #36

@fidoboy

Description

@fidoboy

The supplied bash script fails to detect the path when in proxy_cache mode because it only searches for fastcgi cache paths. Also there is another issue if the path in manual-configs.nginx ends with slash. Then the directory is not created rightly. It could be better if the script detects if there is a slash at the end of the path.

The plugin also fails to detect nginx when it's a proxied environment (nginx -> apache -> php-fpm) So in nginx.conf the cache paths are like that: proxy_cache_path /var/cache/nginx/ levels=1:2 keys_zone= ....

Wordpress plugin page says: "This plugin, NPP, allows WordPress users to manage Nginx Cache Purge and Preload (FastCGI, Proxy, SCGI, UWSGI) operations directly from the WordPress admin dashboard, enhancing website performance and caching efficiency." but I'm afraid that it only works in FastCGI and not with proxy_pass as it is right now.

This both issues should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions