To view some category / archive pages on a test site, a lot of memory is required.
Yesterday I met the following error messages:
Fatal error: the valid memory capacity of 33554432 bytes was exhausted (tried to allocate 48 bytes) in / var / www / t / wp -includes / load.php on line 552
Fatal error: Permissible memory capacity of 209715200 bytes was exhausted (tried to allocate 40 bytes) in / var / www / t / wp -includes / meta.php on line 307
The problem was solved by adding "define (" WP_MEMORY_LIMIT "," 210M "); line to the wp-config.php file.
But that is not enough. The production site will have much more data than the test site, which means that I have to add "define (" WP_MEMORY_LIMIT "," 2100M "); line to the wp-config.php file. And 2100M may not be big enough as time.
How to significantly reduce memory usage on a WordPress site? Any help is appreciated.
source
share