Re: APC opcode cache behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14 feb. 2013, at 15:19, "marco@xxxxxxxxxx" <marco@xxxxxxxxxx> wrote:

>> Aaron Holmes <aaron@xxxxxxxxxxxxxxx> 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@xxxxxxxxxx
> 
> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux