V
V
Vladislav2015-09-23 13:53:46
PHP
Vladislav, 2015-09-23 13:53:46

Why does memory_limit change arbitrarily?

In short, I changed the memory_limit to 256M, and see what value I get when I output phpinfo (). I open the page and see that the value of memory_limit is 256M, well, I think it’s great, I update the page and see 128, I update it again and see 256, I think the glitch must have updated again 256 again, and the control update showed again 128. In short, each time the value changes arbitrarily or 128 or 256. Maybe this is normal behavior, I don't know. Who can tell what this means? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2015-09-23
@MrBikus

Maybe some strange cache triggering in the browser?

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Expires: " . date("r"));
phpinfo();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question