R
R
Ramir12014-08-08 14:33:30
caching
Ramir1, 2014-08-08 14:33:30

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;

optest1.php
<?php
echo 1;
$a='19283777367lj askjfalsfjalksjf salkf sadlfkj kajsfklajsdflkjasdlkfjasdlkfj kjadsfkjadsflkjalkdsjfklasjdfkljasdlfkjaslkdjf';
$b='dskjsfljijlvijxivjlixjvilxjlivjlisdjfvlixjviljxdlivjlxidjvasd aljdsfklajsdlkfjaslkdfjlkasjdfklasjdflkajsdlkfjalskdjfalksdjfl';
$c=$a.$b;
include_once 'Autoembed.php';

Autoembed.php - library ~10Kb
In Opcache
Autoembed.php 3 40.93KB
optest0.php 0 1.43KB
optest1.php 0 1.53KB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2014-08-08
@opium

everything seems to be cached with regard to php code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question