php-general Digest 14 Feb 2013 15:08:05 -0000 Issue 8123
Topics (messages 320201 through 320203):
Re: APC opcode cache behavior
320201 by: Aaron Holmes
320202 by: marco.behnke.biz
320203 by: Camilo Sperberg
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Driving home, I realized how vague this was.
Specifically, I'm looking for information on when APC will cache a file
or directory, and what it checks before doing so.
Thanks again,
Aaron Holmes
On 2/13/2013 6:53 PM, Aaron Holmes wrote:
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?
Thanks,
Aaron holmes
--- End Message ---
--- Begin Message ---
> Aaron Holmes <aa...@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: ma...@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz
--- End Message ---
--- Begin Message ---
On 14 feb. 2013, at 15:19, "ma...@behnke.biz" <ma...@behnke.biz> wrote:
>> Aaron Holmes <aa...@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: ma...@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
--- End Message ---