jeroenvermeulen.nu wrote:I am renting a VPS at my local hosting company, they told me the following; we notice that the CPU goes to 80% when loading a page.
The first time a page loads, it gets "created", but after that there is no reason it should not be fast, since it just loads a cached html page.
jeroenvermeulen.nu wrote:Every time a page opens it looks like the script checks the folder \app\_cache\images\rendered\
It would only check for images stored in cache, that are actually ON the page you are loading. That is the whole point with the cache system, and there is nothing wrong with that specifically. If the resized-image is not yet created/cached, it will have to resize an image, and that is a slow process.
jeroenvermeulen.nu wrote: , in this folder there are 12000 photos.
How many photos do you have in your gallery? That sounds like a suspiciously high number I admit ...
jeroenvermeulen.nu wrote:In some cases the PHP will check this folder
It doesn't generally "check the folder", but it checks for existence of a cached file, and that is the whole point of cache. Also, it will only check for the cached file when the page is created first time, because after that the page instance itself gets cached as a html resource (no more checking).
jeroenvermeulen.nu wrote:but will also check the original, not cached photos.
Not quite sure what you mean by this. The original image is there, and server may load it obviously, but it doesn't "check" it or anything. It just gets loaded, and in some cases counted for the sake of the menu and other things.
jeroenvermeulen.nu wrote:Do you have any solutions for me? I am happy to give the correct IP for the hosts file, but I would to message this.
X3 should not be slow, so yes would be interesting to look into this. It does sound
very strange that you have 12000 photos in the /images/ cache specifically. Are you sure the other cache folders are created, and have subfolders inside?
