How does php_value auto_prepend_file in apache work with php, does it always remain in memory?

I am wondering how autoprepend works with php and httpd.

Does the file download once or download it every time the script is called apache?

If I have a file that reads files from disk and loads them using auto_prepend, they remain in memory or are loaded with every call.

I am trying to download a file and remain in memory and reboot only after restarting apache.

<Directory> php_value auto_prepend_file /path/to/file </Directory> 
+4
source share
1 answer

auto_prepend_file named file before auto_prepend_file any other script; think of auto_prepend_file as auto_prepend_file , which exists at the top of all the other scripts you have (other than that).

+6
source

Source: https://habr.com/ru/post/1394459/


All Articles