Re: com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c
ext/opcache/ZendAccelerator.h ext/opcache/zend_accelerator_module.c

From: Date: Fri, 27 Sep 2013 08:55:11 +0000
Subject: Re: com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c
ext/opcache/ZendAccelerator.h ext/opcache/zend_accelerator_module.c
References: 1 2 3 4  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73294@lists.php.net to get a copy of this message
Hi Yasua, Sorry, but I don't know the rails "eager loading" and didn't understand you request. Thanks. Dmitry. On Thu, Sep 26, 2013 at 5:46 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi Adam and Dmitry, > > On Thu, Sep 26, 2013 at 5:58 AM, Dmitry Stogov <dmitry@zend.com> wrote: > >> This function is going to be used only for cache warm-up (to load files >> into cache without execution). >> I don't think it may be useful in application code. >> It 's not a big problem having warning and hiding it with @ if necessary. >> > > Rails has feature called "eager loading" that loads all scripts at start up > for better user experience with applications. > > This could be used implement the same feature in PHP if it's available > in user space. Since this is ZEND_FUNCTION, I suppose it is available. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net >

« previous php.cvs (#73294) next »