note 98165 added to function.apc-compile-file

From: Date: Sat, 29 May 2010 11:53:39 +0000
Subject: note 98165 added to function.apc-compile-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-169711@lists.php.net to get a copy of this message
i would like to reiterate the point made by Glen @ 31-Mar-2009 10:44... this function is extremely useful if one would like to enable apc.stat=0. we saw quite a big performance increase by enabling apc.stat=0. and since purging the cache every time we push a file from beta to live, or restarting apache is out of the question, this function comes in handy. the idea should be obvious to most, but, just in case: a) push file from beta to live. b) at this point, the opcode cache still has an 'old' copy of the file cached. c) run apc_compile_file on the updated file. d) at this point, the new version of the file is now in the opcode cache, the opcode cache is left untouched except for the single file that one has updated, and one is able to use apc.stat=0 and avoid all those (which are said to be rather expensive) stat calls. this was mentioned in a small amount of detail at oscon 2009 (http://prezi.com/re8rsdjmpkko/oscon-09-high-performance-apc/) all due credit goes to glen, thanks! ---- Server IP: 64.71.164.2 Probable Submitter: 72.11.143.208 ---- Manual Page -- http://www.php.net/manual/en/function.apc-compile-file.php Edit -- https://master.php.net/note/edit/98165 Del: integrated -- https://master.php.net/note/delete/98165/integrated Del: useless -- https://master.php.net/note/delete/98165/useless Del: bad code -- https://master.php.net/note/delete/98165/bad+code Del: spam -- https://master.php.net/note/delete/98165/spam Del: non-english -- https://master.php.net/note/delete/98165/non-english Del: in docs -- https://master.php.net/note/delete/98165/in+docs Del: other reasons-- https://master.php.net/note/delete/98165 Reject -- https://master.php.net/note/reject/98165 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169711) next »