Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

nginx symlink caching issue #771

Open
sweebee opened this issue Sep 18, 2018 · 2 comments
Open

nginx symlink caching issue #771

sweebee opened this issue Sep 18, 2018 · 2 comments

Comments

@sweebee
Copy link

sweebee commented Sep 18, 2018

After each deploy i run php -r "opcache_reset();" and i've added

fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;

to /etc/nginx/fastcgi.conf

But it still redirects to the old release. What is the best way to solve this?

@Anahkiasen
Copy link
Member

You can use cachetool (by pulling the PHAR during deploy) which has an opcache:clear command that should work in theory

@sweebee
Copy link
Author

sweebee commented Sep 18, 2018

The problem with that is that it requires root access.

I found a different solution that seems to work. I've created a php file with

<?php
opcache_reset();

and call it with curl.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants