APC & Custom streams
| From: | Simon Kissane | Date: | Fri, 23 Sep 2005 12:52:45 +0000 |
| Subject: | APC & Custom streams | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-2964@lists.php.net to get a copy of this message | ||
Hi
Does APC support caching PHP files which are included/required from
non-file urls? e.g., if i define a custom url scheme, e.g.
module://utils/main.inc, will APC cache includes/requires of such
urls?
My need: I have a complex application composed of several modules,
each of which contains dozens (or even hundreds) of PHP & other files.
I decided I'd try putting each of these modules in a zip, and writing
a custom stream which reads a file from the zip. Now, I knew this
would slow done each page load a lot, esp. given the large number of
PHP files included in every page. But I thought to myself -- I'm using
APC, after loading it the first time, it should just get cached. But
my apc_cache_info doesn't mention any of the files included via the
custom url scheme. Did I do something wrong with writing my scheme
implementation? Or does APC not support this?
If APC doesn't support this, do the APC developers have any plans to
add it? Would it be hard to add myself?
Thanks
Simon