Re: APC & Custom streams

From: Date: Fri, 23 Sep 2005 17:41:16 +0000
Subject: Re: APC & Custom streams
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2967@lists.php.net to get a copy of this message
> > 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? > > It can't really do that. APC does a stat() on the script file to get > file's device, inode and mtime. Based on this it inserts the opcodes > into the cache hashed on device+inode and it uses the mtime to determine > if it should replace the opcodes if they are already there. > Do I understand you to mean that *if* a wrapper implements url_stat() and *if* the stat_buf is populated with, at minimum, those three elements that APC will cache? -Sara

« previous php.pecl.dev (#2967) next »