PHP opcache reset + symlink-style deployment

后端 未结 3 997
时光取名叫无心
时光取名叫无心 2021-02-01 20:00

I am trying to reset PHP opcache after a symlink-style deployment. There is the opcache_reset.php file in my project which is executing by wget after t

3条回答
  •  轮回少年
    2021-02-01 20:39

    If you are for some reason not able to use fastcgi_param with $realpath_root and using symlink style deployment, then try to set the opcache.revalidate_path = On in your php ini configuration. I was not able to find any good documentation that explains how this ini directory works under the hood, but it did work after I changed the symlinks. Hope this helps anyone.

提交回复
热议问题