Support » Plugin: WooCommerce » Database shrinks – images are deleted by themselves

  • Resolved agunda


    Hello all,

    I have the phenomenon that the database is suddenly reduced by 25% and at the same time approx. 5000 images are deleted from various folders. The images are all product images. Afterwards, the product is still there, but all posts (pages and products) that contain these images are set to unwritten, as if no image had been there.

    Has anyone ever seen something like this and had experience with it?
    Is it possible that the SQL resizes itself (there are no automatic optimisation plugins) and then WordPress automatically starts deleting the images?


    Any help of any kind would be greatly appreciated!

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Senff – a11n


    Hey @agunda

    Databases don’t usually resize by itself, and images being deleted shouldn’t happen just like that either. Usually this could be caused by optimization plugins, but if you’re 100% sure that you don’t have any installed on your site, you might want to check with your host to see if they have any optimization processes running on the server.

    Also, as this doesn’t appear to be a WooCommerce-specific issue, you may want to post it on the WordPress forum instead at

    Thread Starter agunda


    Hi Senff,

    so (most likely) the following scenario occurred:

    WordPress creates with every upload up to many, for the store unusable intermediate formats (whatever for). This caused the folder limitation to come into play.

    LiteSpeed Cache Plugin has now tried to improve the images, processed, deleted the original and tried to write. Writing was not possible at that moment because of the limitation. Then LiteSpeed Cache Plugin notices that the images are missing and “cleans” the database. Especially the last step is fatal.

    Thanks for your puzzling, @senff !

    All the best

    Thread Starter agunda


    Update: the error (killing images) apparently still appears as soon as wp-cron.php is executed. I have now renamed the data and will have to test further…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Database shrinks – images are deleted by themselves’ is closed to new replies.