Hello. There is an online store on the engine PhpShop 3.1
. There are about 2500 goods in it. He eats more than 200 MB and the hoster for it kicks.
The problem is that from the start he does not select the necessary goods from the database, but takes EVERYTHING and puts them into an array, which he refers to in the future.
Here is a graph of memory usage:
It is necessary to optimize it.
Here found an article on Habré: Optimization PHPShop
I want to do the same, but I do not understand how they achieved that the data would fall into the array only when they were accessed?
This should be done "unnoticed" for other scripts, i.e. they will continue to turn to the array as before, so as not to pick the whole engine.
Tell me what is meant in the article and how to do it.
UPD:
PhpInfo: info - ancient php 4.4.9 ((
Here are all the statistics for the last year: stat