php - Problems with APC on publish -


We have recently enabled our servers, and sometimes when we publish a new code or change It is found that source files started throwing errors, which are not reflected in the code, usually parsing errors describing a token that do not exist. We call it an error message to verify it by running php -l on the affected files. Normally a republished problem solves the problem we are using PHP 5.2.0 and APC 3.01.9. My question is, is anyone else experiencing this problem, or does anyone recognize us that what is our problem? If so, how have you fixed it or how can we fix it?

EDIT: I probably should add some details about our publishing process, the content is being pushed from the staging server to the production server via rsync. We have enabled apc.stat_ctime because it has said that it helps to run things with the receipt, apc.write_lock is turned on by default and we disable it have not done it. OK for apc.file_update_protection

Looks like a part-published file is read and cached broken. Designed to help prevent this. Php.ini: apc.file_update_protection integer

apc.file_update_protection setting caching brand delayed new files The default is 2 seconds, which means that if the modified timestamp (MEET) on the file shows that it is less than 2 seconds old, when it is accessed it will not be cached. The unfortunate person who reached this half-written file will still look weird, but at least this will not continue.

After the question to be edited: One reason I do not see these problems is that I push the whole new copy of the site (with SVN export). It is Apache / Mode_FPP (see my answer) only after it is fully completed

There can be another thing, which can definitely be done, is that if you are updating in place , You can update that file, depending on the others that have not been uploaded yet. Rsync only guarantees nuclear updates for personal files, not the whole collection being changed / uploaded. Another reason is that I consider uploading the site extensively, and then only use it. I am


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -