erickhavel
Forum Replies Created
-
1) Normally, you would not include the entire /uploads/ folder in your static site, instead only that files which are actually used within the page.
If your site doesn’t have any orphan uploads (not used in any page) then all of the images would be linked to from somewhere, leading to all of them having to be included in the static build. Or am I missing something?
In any case this is an awesome plugin and I will be using it for the many small sites I’m currently managing, simply to cut down on potential security issues. Thank you for your hard work, it will save me hours and hours of mine!
And if you were able to solve the issues with larger sites (way shorter build time essentially, at least on subsequent builds) I believe people could be interested in paying money for it as a premium plugin.
I was also just experimenting with a large site and realized – after only 10% had been processed after an hour – that it’s not really viable for large sites currently.
Some thoughts/ideas:
1. Wouldn’t it be faster to copy images from wp-content/uploads/ instead of making HTTP requests?
2. Would it be possible to run something similar to rsync, checking whether files already exist in target directory, instead of starting every build from a blank slate?#2 would probably speed up the process by a lot, for subsequent builds after the initial “cache” has been built, as most of the data will be from wp-content/uploads/.