-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need atomic write when preparing code #61
Comments
Would adding a |
http://php.net/manual/en/apc.configuration.php#ini.apc.file-update-protection
|
|
I took APC as good documented example. In real project we use OpCache https://secure.php.net/manual/en/opcache.configuration.php#ini.opcache.file_update_protection |
I think it will improve even with |
in line PHPTAL.php:828 used not atomic writes via file_put_contents
if (!file_put_contents($this->getCodePath(), $result)) {
OpCache in some cases is in time to store an empty file into the cache. Potential reasons for it is high RPS, high concurency, slow disks and so on.
File exists, it's not empty, there are no errors while requiring file, but function is not defined and we have this log message:
E_ERROR: Call to undefined function tpl_... in: /var/local/www/app/outsource/PHPTAL/PHPTAL.php:667
The text was updated successfully, but these errors were encountered: