nystudio107 / craft-fastcgicachebust

Bust the Nginx FastCGI Cache when entries are saved or created.
https://nystudio107.com/
MIT License
19 stars 2 forks source link

Support environment variables / aliases in plugin settings? #9

Closed proimage closed 2 years ago

proimage commented 4 years ago

Seems like the plugin doesn't allow using an environment var or alias to determine the path to the FastCGI cache. Is that a correct conclusion, and can that be added?

andrewmenich commented 4 years ago

If @khalwat is open to a PR I'd be happy to get this implemented!

I didn't realize the solution to this is as simple as adding a fastcgi-cache-bust.php file to your config folder. See here for details https://github.com/nystudio107/craft-fastcgicachebust/blob/v1/src/config.php

khalwat commented 2 years ago

Added support for aliases & environment variables in: https://github.com/nystudio107/craft-fastcgicachebust/commit/63b48c7a297cadf01f2214b546183bc956d396e9