openshift:如何在不重新启动应用程序的情况下强制目录内容刷新

openshift: how to force directory content refresh without restarting the application

我已经(通过 SFTP)在我的 openshift 应用程序 space 中上传了 php 脚本的新版本。但是,我不得不重新启动应用程序,因为运行的脚本出现在以前的版本中。每次上传某些脚本的新版本时,有什么方法可以强制刷新更新的文件而无需重新启动应用程序?谢谢。

From the docs,将 APC_ENABLED 设置为 false,当您直接通过 SFTP 连接到 root 时,请注意 git 推送,因为您将被 git 覆盖回购协议....因为回购协议没有在您使用 sftp-ed 时被修改....支持自己...

Configure PHP APC With this latest release we’ve created a way for you Enable/Disable APC opcode cache in your PHP app. While APC is enabled by default, you can disable/re-enable APC by running rhc env-set OPENSHIFT_PHP_APC_ENABLED=false --app . Once again, we’ve provided some new environment variables to make this change even easier.

$OPENSHIFT_PHP_APC_ENABLED=true/false
$OPENSHIFT_PHP_APC_SHM_SIZE={64,128,256}MB