note 121990 added to function.opcache-compile-file

From: Date: Wed, 06 Dec 2017 15:38:47 +0000
Subject: note 121990 added to function.opcache-compile-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-209326@lists.php.net to get a copy of this message
Be aware that opcache will only compile and cache files older than the script execution start. For instance, if you use a script to generate cache files (e.g. you don't have access to shmop and rely on opcache for in-memory data caching instead), opcache_compile_file will not include the generated file in the cache, because its modification time is after the script start. The workaround is to use touch() to set a date before the script execution date, then opcache will compile and cache the generated file. ---- Server IP: 208.43.231.9 Probable Submitter: 109.8.215.173 ---- Manual Page -- http://php.net/manual/en/function.opcache-compile-file.php Edit -- https://master.php.net/note/edit/121990 Del: integrated -- https://master.php.net/note/delete/121990/integrated Del: useless -- https://master.php.net/note/delete/121990/useless Del: bad code -- https://master.php.net/note/delete/121990/bad+code Del: spam -- https://master.php.net/note/delete/121990/spam Del: non-english -- https://master.php.net/note/delete/121990/non-english Del: in docs -- https://master.php.net/note/delete/121990/in+docs Del: other reasons-- https://master.php.net/note/delete/121990 Reject -- https://master.php.net/note/reject/121990 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209326) next »