# Nginx FastCGI cache Example `/etc/nginx/nginx.conf` using FastCGI (e.g. to PHP-FPM) with [FastCGI cache](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache) enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching. Will need to create a directory to hold cache files, for the example given here that would be: ```sh $ sudo mkdir -p /var/cache/nginxfastcgi $ chown www-data: /var/cache/nginxfastcgi ```