Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8367 > unrolled thread

APC to cache application in full?

Started byViktor Vad <vad.viktor@gmail.com>
First post2013-02-14 02:30 -0800
Last post2013-02-14 16:34 +0100
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  APC to cache application in full? Viktor Vad <vad.viktor@gmail.com> - 2013-02-14 02:30 -0800
    Re: APC to cache application in full? Arno Welzel <usenet@arnowelzel.de> - 2013-02-14 14:51 +0100
    Re: APC to cache application in full? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-14 16:34 +0100

#8367 — APC to cache application in full?

FromViktor Vad <vad.viktor@gmail.com>
Date2013-02-14 02:30 -0800
SubjectAPC to cache application in full?
Message-ID<1d6a1ee0-97e1-433a-939e-54eeb53b2fe4@googlegroups.com>
I would have the following question: 

Is the most recent APC capable to be told to cache the whole application's code upon start of the application? I am not fully aware of the mechanics of APC yet and I wish to find a -if any- way to load generate the full opcode cache of my app and keep it there until, let's say server restart. 

I search for a behavior similar to running Rails on Passanger, where the full code is cached upon starting up the server. Is it possible in PHP?

[toc] | [next] | [standalone]


#8369

FromArno Welzel <usenet@arnowelzel.de>
Date2013-02-14 14:51 +0100
Message-ID<kfiq4c$hlc$2@dont-email.me>
In reply to#8367
Am 14.02.2013 11:30, schrieb Viktor Vad:

> I would have the following question:
>
> Is the most recent APC capable to be told to cache the whole application's
 > code upon start of the application? I am not fully aware of the mechanics
 > of APC yet and I wish to find a -if any- way to load generate the
 > full opcode cache of my app and keep it there until, let's say server 
restart.

That's the idea behind every byte code cache (APC, XCache etc.).

> I search for a behavior similar to running Rails on Passanger, where the
 > full code is cached upon starting up the server. Is it possible in PHP?

Yes, with Zend Optimizer:

<http://www.zend.com/de/products/guard/runtime-decoders>

But every byte code cache will behave similar - it will cache the code 
as long as possible, otherwise it would not make any sense.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

[toc] | [prev] | [next] | [standalone]


#8372

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2013-02-14 16:34 +0100
Message-ID<ao4efpFhhc5U1@mid.uni-berlin.de>
In reply to#8367
Am 14.02.2013 11:30, schrieb Viktor Vad:
> I would have the following question: 
> 
> Is the most recent APC capable to be told to cache the whole application's code upon start of the application? I am not fully aware of the mechanics of APC yet and I wish to find a -if any- way to load generate the full opcode cache of my app and keep it there until, let's say server restart. 
> 
> I search for a behavior similar to running Rails on Passanger, where the full code is cached upon starting up the server. Is it possible in PHP?
> 

Install it, and call apc.php, it will show you. From the docs:

Once the server is running, the apc.php script that is bundled with the extension
should be copied somewhere into the docroot and viewed with a browser as it provides
a detailed analysis of the internal workings of APC. If GD is enabled in PHP, it will
even display some interesting graphs. The first thing to ensure, of course, is that
it is actually caching files. If APC is working, the Cache full count number (on the
left) will display the number of times the cache has reached maximum capacity and has
had to fo............

Did you want to ask what are the experiences with apc?

I have none, I stay away from such complications if at all possible.

/Str.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web