Re: APC opcode cache behavior

From: Date: Thu, 14 Feb 2013 15:05:36 +0000
Subject: Re: APC opcode cache behavior
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-320203@lists.php.net to get a copy of this message
On 14 feb. 2013, at 15:19, "marco@behnke.biz" <marco@behnke.biz> wrote: >> Aaron Holmes <aaron@aaronholmes.net> hat am 14. Februar 2013 um 03:53 >> geschrieben: >> Hello, >> I'm trying to find some information on APC opcode cache behavior. >> We noticed an issue where, when switching symlinks to different versions >> of sites, old code was running from the previous version after switching >> the symlink. >> >> Anyone know where I can find more information on this? > > Yes, that is the case. And iirc it will not update the cache if the mtime of the > new "switched" file is not newer. If you switch you must either restart the > apache or touch the files. > > read more: > > http://linuxaria.com/howto/everything-you-need-to-know-about-apc-alternate-php-cache?lang=en > > And on php.net about ini configuration values > >> >> Thanks, >> Aaron holmes >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- > Marco Behnke > Dipl. Informatiker (FH), SAE Audio Engineer Diploma > Zend Certified Engineer PHP 5.3 > > Tel.: 0174 / 9722336 > e-Mail: marco@behnke.biz > > Softwaretechnik Behnke > Heinrich-Heine-Str. 7D > 21218 Seevetal > > http://www.behnke.biz > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > You can also write a little script that clears the APC cache, something in the line of: #!/usr/bin/php <?php apc_clear_cache(); And execute this script each time you deploy. (can also be a command such as php -r "apc_clear_cache();"). This way you'll avoid restarting the webserver and it will clear all APC cache forcing APC to cache everything again. Greetings. Met vriendelijke groet, Camilo Sperberg ---------------- W: http://unreal4u.com T: http://twitter.com/unreal4u

« previous php.general (#320203) next »