note 89767 added to function.apc-compile-file
| From: | A dot R dot at osu1 dot php dot net | Date: | Sun, 22 Mar 2009 15:15:31 +0000 |
| Subject: | note 89767 added to function.apc-compile-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152282@lists.php.net to get a copy of this message | ||
It should be noted, that the above suggestion to "compile your entire project", or for any
web developer to ever call this apc_compile_file function at all, is superfluous, because APC will
automatically compile pages for you on demand. This function does not do anything useful.
I had actually avoided installing APC for a long time because I thought it would be very complex,
partly because of this manual page which tells you how to compile but doesn't tell you how to
execute a compiled page.
After installing APC, you can tell if it's working, by adding this to one of your webpages:
<?php
echo("<pre>");
print_r(apc_cache_info());
echo("</pre>");
?>
Run this before and after hitting a few pages on the site, to see the compiled files automatically
show up in the list.
Again, there is no need to ever call apc_compile_file explicitly. This function is probably
available for some sort of very advanced use.
----
Server IP: 208.69.120.35
Probable Submitter: 75.2.242.221
----
Manual Page -- http://www.php.net/manual/en/function.apc-compile-file.php
Edit -- https://master.php.net/note/edit/89767
Del: integrated -- https://master.php.net/note/delete/89767/integrated
Del: useless -- https://master.php.net/note/delete/89767/useless
Del: bad code -- https://master.php.net/note/delete/89767/bad+code
Del: spam -- https://master.php.net/note/delete/89767/spam
Del: non-english -- https://master.php.net/note/delete/89767/non-english
Del: in docs -- https://master.php.net/note/delete/89767/in+docs
Del: other reasons-- https://master.php.net/note/delete/89767
Reject -- https://master.php.net/note/reject/89767
Search -- https://master.php.net/manage/user-notes.php