Answer the question
In order to leave comments, you need to log in
How to force Opcache to cache not only *.php files?
Hello!
1) Opcache only caches php. Is it possible to force it to store other files in the cache?
For example, in the process, ini files or tpl files are connected, which also contain code, and unnecessary disk access reduces the effect.
If possible, how?
2) The delay at include_once() 18 files reaches 0.14ms. Does it mean that Opcache reads these files from disk?
No such problems were observed with APC.
P.S. Checked the size of the files in memory.
That is, everything still caches. The SECOND question remains.
optest0.php
<?php
echo 0;
$a='19283777367lj askjfalsfjalksjf salkf sadlfkj kajsfklajsdflkjasdlkfjasdlkfj kjadsfkjadsflkjalkdsjfklasjdfkljasdlfkjaslkdjf';
$b='dskjsfljijlvijxivjlixjvilxjlivjlisdjfvlixjviljxdlivjlxidjvasd aljdsfklajsdlkfjaslkdfjlkasjdfklasjdflkajsdlkfjalskdjfalksdjfl';
$c=$a.$b;
<?php
echo 1;
$a='19283777367lj askjfalsfjalksjf salkf sadlfkj kajsfklajsdflkjasdlkfjasdlkfj kjadsfkjadsflkjalkdsjfklasjdfkljasdlfkjaslkdjf';
$b='dskjsfljijlvijxivjlixjvilxjlivjlisdjfvlixjviljxdlivjlxidjvasd aljdsfklajsdlkfjaslkdfjlkasjdfklasjdflkajsdlkfjalskdjfalksdjfl';
$c=$a.$b;
include_once 'Autoembed.php';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question