lighttpd forum XCache > __autoload

Posted by Martyo (Guest)
on 25.02.2008 14:12
I recently tuned the performance of a large and busy PHP application. 
While doing so I noticed that most of the script execution time was 
spent including the functions, which were all contained within a single 
PHP include.

To rectify this I used __autoload and put all the functions into their 
own separate PHP includes, giving me approximately 80 files. Therefore 
only functions that are actually used are included as and when they are 
needed.

While script execution time was certainly reduced, I think I recall 
reading that XCache does not cache dynamically included files via 
__autoload. Is that correct and if so, are there any plans to make 
XCache cache dynamically loaded includes in the future? I'd love to 
squeeze every little bit of performance out of PHP that I can ;)
Posted by moo XCache
on 26.02.2008 05:42
if you check XCache admin page (stats page) you'll see it's cached 
correctly