![]() ![]() If none of that helps, a “last resort” option would be to use Directory Smushing instead of bulk-smushing to bulk-optimize those images. This should help make scan less “aggressive” which may help (though it would make it slower).ģ. If this doesn’t help, try also adding this line to the “wp-config.php” file (again, above the “/* That’s all, stop editing !*/”:ĭefine( 'WP_SMUSH_SCAN_SLICE_SIZE', '500' ) Note: add these lines if in step 1a you see values lower than that from step 1a Ģ. Where XXX should be replaced with the value that you noted down in step 1a. To deal with that, there are few things that you can try:Ī) please go to the “Tools -> Site Health -> Info” page and check current value for “PHP memory limit” under “Server” tab note it down.ī) then look into the “WordPress Constants” tab on the same page and check current value for “WP_MEMORY_LIMIT” and “WP_MAX_MEMORY_LIMIT”Ĭ) if any of these two is smaller than the “PHP Memory limit” value, add following line(s) to the “wp-config.php”, accordingly, above the “/* That’s all, stop editing! */ line define( 'WP_MEMORY_LIMIT', 'XXX' ) In general, the issue here is exactly what the error says – the resources provided by the server that hosts the site seem to be not sufficient to perform such a big scan. With this amount of images it results in a big amount of DB queries and filesystem requests which may, indeed, require significant resources. Smush itself doesn’t have such limits on that but in order to be able to correctly do optimization, it needs to “scan the library” which means it goes through the DB to read information about each and every image and check optimization information that it may have added previously as well as check file paths (for each version of the given image). That’s a lot of images and given the fact that for each image there are always also additional smaller copies/versions of it created by WordPress – this makes a really huge amount. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |