elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
124 stars 33 forks source link

The temporary folder is not cleaned #186

Open Giancarlo1974 opened 4 years ago

Giancarlo1974 commented 4 years ago

Congratulations for the plugin, it works well

I discovered the following problem: When I export the site, a temporary folder is created inside wp-upload

When the plugin finishes the export, the folder remains full, creating space problems

I use another plugin to backup the site: UpdraftPlus which sends the temporary folder in the backup on cloud, thus taking up double the space :-(

Could you empty the folder? Could you choose this temporary folder ?

leonstafford commented 4 years ago

Hi @Giancarlo1974,

Thanks for reporting. Could you please confirm which version of the plugin you are using?

There are some decisions which have been made to use this "working" directory. In some versions of the plugin, you'll need approx 3 times the site's size available, for:

Actually, if you're using the ZIP deployment method, than you'll need about 3.5 to 4 x available, as the zip will also take up space.

How big is this site and how much space does your hosting offer?

For backup plugins, you can exclude the plugin's folders to avoid them being included.

PHP's temp directories won't fit with plugin's aims, at least in some versions I'm working on. I'm using the directory in question more as a crawling cache nowadays, so we expect it to be there between deploys. You should be able to programmatically delete this directory after deployment is complete, which may solve the problem you're facing now.

Giancarlo1974 commented 4 years ago

Thanks for reporting. Could you please confirm which version of the plugin you are using?

6.6.7

There are some decisions which have been made to use this "working" directory. In some versions of the plugin, you'll need approx 3 times the site's size available, for:

  • the actual site
  • the crawled site
  • the processed site

Actually, if you're using the ZIP deployment method, than you'll need about 3.5 to 4 x available, as the zip will also take up space.

No, i choosed Target Directory i want my static files into a folder

How big is this site and how much space does your hosting offer?

187M wp-content/uploads/wp-static-html-output-1596559303/ my hosting offers 20gb

the plugin works well the problem i have on cloud backup:

a daily backup occupies over 400mb If the backup took up less space, I could keep more days

For backup plugins, you can exclude the plugin's folders to avoid them being included.

ok, it could be a workaround

You should be able to programmatically delete this directory after deployment is complete, which may solve the problem you're facing now.

why doesn't your script empty this folder before it finishes?