PHP opcache reset + symlink-style deployment

后端 未结 3 958
时光取名叫无心
时光取名叫无心 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:53

    Reasons and two possible solutions described in the ZendOptimizerPlus issue. We solved it by using $realpath_root in the nginx config:

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

提交回复
热议问题