opcode-cache

Opcode cache impact on memory ussage

Can anyone tell me what is the memory usage overhead associated with PHP opcode cache? I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increace. I have a small entry level VPS and memory limits are a concern for me. ...

Is there a way to measure parse time in PHP?

Optimization of PHP code via runtime benchmarking is straight forward. Keep track of $start and $end times via microtime() around a code block - I am not looking for an answer that involves microtime() usage. What I would like to do is measure the time it takes PHP to get prepared to run it's code - code-parse/op-code-tree-building tim...

apc vs eaccelerator vs xcache

Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC, but APC is better maintained. Xcache is faster but the others have easier syntax. Anyone have recommendations on which to use and why? Thanks ...

Do PHP opcode cache work with __autoload?

Sorry if this is basic, I am trying to learn as much as I can about OO in PHP and I am slowly learning how to use it (very limited). So I am wanting to know if __autoload() has any affect on PHP opcode cache's? ...

Basic PHP Opcode Cache Question

Currently on a very large project that I plan to never re-ue for another site, I have the sites name hardcoded into the files everywhere, now if I were ever to change the sitename it would take a lot of effort to change the name everywhere. I know the obvious solution is to just store the name as avariable or a constant but I guess you ...

What are the advantages/disadvantages of monolithic PHP coding versus small specialized php scripts?

I have historically used a monolithic approach to PHP coding. That is, I write one index.php, with an average size of 70k-250k, and use mod_rewrite to turn the rest of the REQUEST_URI into parameters passed into the index.php to control what is happening. The alternative would be to write many small php scripts, each specialize...

Which one would you choose ; XCache or APC ?

I need a opcode-cache in my project. Also i will use for the datastore (mysql returned row) cache ? Which is the best for you and WHY ? ...

APC Hits/Misses and configuration

What are "Hits & Misses" in reference to APC opcode caching? I've installed APC and it's running great, but I've got "some" misses and I'm wondering if that's "bad". Also, I am running Openx and, as such, am filling up the "Cache full count(s)" pretty quickly. What do I need to change in the configuration to minimize that? Any recommende...

apc.filters by path?

How would I use the apc.filters parameter in APC opcode caching to not cache certain paths? For example, I want caching to be active for anything under the path: "/var/www/vhosts" and exclude paths like "/usr/share/psa-horde/" I tried using apc.cache_by_default = 0 apc.filters = "+/var/www/vhosts" and apc.cache_by_default = 1 apc...

PHP5 Frameworks: Autoloading and Opcode Caching

A number of frameworks utilize spl_autoload_register() for dynamically loading classes (i.e. controllers and models). There are a couple of posts on the issue of autoloading and opcode caching. One post in particular has a response by @cletus which references @Rasmus making a number of statements which prove to be unsavoury for those u...

Configuring APC with Drupal

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...

Simple PHP opcode caching solution which does not need compilation?

I have a PHP site where all pages include an 57K generated PHP file. I'm thinking of using an opcode cache, so the file doesn't need to be parsed for every time a page is loaded (I assume loading the already parsed file would be faster than reading the 57K source file). APC seems to be good candidate for this, but according to phpinfo m...

Python doesn't have opcode cacher?

Hi, I'm currently using PHP. I plan to start using Django for some of my next project. But I don't have any experience with Python. After some searching, I still can't find a Python opcode cacher. (There are lots of opcode cacher for PHP: APC, eAccelerator, Xcache, ...) ...

Optimize APC Caching

Hello, here is a link to how my APC is running : http://www.animefushigi.com/apc.php As you can see, it fills up pretty quickly and my Cache Full Count goes over 1000 sometimes My website uses Wordpress. I notice that every time I make a new post or edit a post, 2 things happen. 1) APC Memory "USED" resets 2) I get a whole lot of Fr...

APC: opcode cache vs. user cache - set separate limits

Hey, I am trying to move from the typical combination of APC (for opcode) and Memcache (for my userdata) to a purely apc based cache. Given my usage structure it makes sense and performance is higher. But unlike before, where the apc cache was limited to a reasonable size and did not affect my data cache, I am now worried that the op...