I am running Symfony (1.2.9) with PHP Version 5.2.11 on Windows XP.
I have APC installed (Version 3.0.19)
I can run PHP script to prove that apc is working correctly (works). However, when I try to use APC calls in a symfony action, I get this error (in the apache error.log file):
[apc-error] Cannot redeclare class sfconfig
Which pro...
I am having trouble understanding the format required by the apc.filters directive in PHP APC configuration. (particularly for more than one patterns)
The manual says
"A comma-separated list of POSIX extended regular expressions."
Let's say i don't want to cache two files namely brooklyn.php and boston.php
I put the following entry:...
I can't get APC to work on Windows because Apache keeps crashing as soon as I run a php file. Is this issue know and is there a workaround?
Versions:
Apache 2.2.14
PHP 3.1
APC 3.1.3
...
Ive been using memcache before, decided to try out APC. Im having problems with it actually reading values, and respecting the expiry dates. I can set a 10 min expired date on a piece of data. Refresh the page, which will run a mysql query and cache the result into a key. On next load, it checks to see if the key is set, and if it is, it...
I am using memcache for cacheing objects, but would like to add in addition an opcode accelerator like APC. Since they both involve cacheing, I am not sure if they will be "stepping on each others toes", i.e. I am not sure if memcache is already an OP code accelerator.
Can someone clarify? I would like to use them both - bit for differ...
In the Status Report page in drupal, i usually find this message (on fresh installation):
Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.
But i never understood why its preferred the PECL ...
apc_clear_cache [http://php.net/manual/en/function.apc-clear-cache.php] has an option to send in 'user' which will delete the apc user cache, or else if not present, the system cache.
Which is better? I don't understand the difference since there's no way to explicitly store a value in one cache over the other via apc_store/apc_fetch.
...
Hi,
If I run the following PHP code:
apc_compile_file("relative/path/to/file");
will it invalidate the in-memory cache that is used for this particular file?
That is, if I first access /path/to/file, APC will compile it, and cache the OpCode in memory. Now, if I access /path/to/file again, APC will just use the cached OpCode. Howeve...
I am on LAMP with Alternative PHP Cache (APC). It worked fine until yesterday when I updated the website and changed a few MySQL queries (I don't see how it would affect the APC opcode cache.)
Today I see that the load has increased on the server and I see in Alternative PHP Cache, that the uptime of APC is somewhere around 15 minutes a...
Hi,
i want to use apc in php, to avoid disc reads when including files.
But how can i know if files are really coming from shared memory, instead of disc reads?
Does anyone know how to measure the number of disc reads for a php script, or in a time interval?
(on windows server 2003)
Thanks a lot in advance,
regards,
Charles
...
I'm implementing object caching in a PHP application using APC.
The issue is, that sometimes I will select something from the database based on different criteria. For instance, when a user logs into the web site, all I have is his username and password, so I'm going to select from the database based on the username.
In other situatio...
I have problem using APC progress bar I follow from this example
http://www.johnboy.com/php-upload-progress-bar/
I modified the code and it works. The problem is it will display the last percentages after I refresh the page. Let say a file is just finish uploaded at 100%, it will display 100% after I refresh the page. If I cancel halfwa...
I have a pretty complicated index.php now, and I would like to only run it once every hour. What is the best way to achieve this? Some ideas I've had
Put it in APC with apc_store($page, 60*60*) - I feel this isn't what APC is for and will probably be doing something bad to the other parts of my site
Save the output to a filesystem som...
If APC stores a lot of entries, clearing them crashes httpd.
*If apc_clear_cache('user') takes longer than phps max_execution_time
the script calling apc_clear_cache
will be terminated by php before the
clearing-operation is finished. this
seems to leave some handles or sth.
that will prevent apache from closing
it's proc...
It's happenning in windows.
PHP5.3.0
Apache2.2.11
Symfony 1.4.1
Is there a fix ?
[apc-error] Cannot redeclare class sfeventdispatcher in D:\wamp\symfony-1.4.1\lib\event_dispatcher\sfEventDispatcher.php on line 3.
[crit] Parent: child process exited with status 2 -- Aborting.
...
Is this bad?
Does it mean that it's not helping at all? What paths do I go down to improve situation?
Thanks in advance.
...
I can only make symfony work properly by diabling php_apc.dll,very strange!
The PHP version is 5.3.0
...
There are various problems when using php_apc with symfony,
If the boost is not so significant,I'm going to replace apc with memcached.
...
I am working on a website which is hosted on a VPS with CENTOS 5.4 i686 virtuozzo installed. I have a drupal installation on the server which gets around 100s of authenticated users at the same time.But at a certain point of time the server stopped responding and the site went offline. So, I tried installing the opcode cache - Alternativ...
I have a php application running on busybox httpd on an ARM-based embedded system. The application is quite slow but I would prefer not to rewrite it in C++. I'm looking for a way to precompile/cache it on ARM but cannot find any of the systems to be available for this architecture.
...