Hello Andreas,
Monday, September 26, 2005, 12:47:48 PM, you wrote:
AK> I think opcode caches like APC have been designed to cache the opcodes
AK> generated from local PHP files.
Yes. There're 2 places where it's essential that local files are cached:
1) device+inode numbers are used as hash key
2) file mtime is used to check if cached file has been updated on disk
AK> And perhaps using the wapper code will slow down APC?
There's no need to use wrapper to get either 1) or 2).
For 1) any hashing method can be used to generate a [rather] unique key from
the filename. For 2) we can't assure that a wrapper can efficiently return
mtime (for example, http or ftp wrappers - in theory, they can retrieve
mtime, but it would require network activity).
But I don't think that we can't use APC with wrappers :) I'm sure it's
acceptable to consider wrapper'ed PHP files as 'never modified', because
they still can be removed by TTL check.
--
Best regards,
val mailto:val@xxxxxxxxxx
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|