lesterchan / wp-sweep

WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.
https://wordpress.org/plugins/wp-sweep/
152 stars 23 forks source link

Add status indicator for long sweeps #63

Open cupojoe opened 5 years ago

cupojoe commented 5 years ago

If you are cleaning a large database, sweeping can take a while. Adding a status or progress indicator would be great. Something to know the process didn't hang.

Like: xx of yyyy left.

szepeviktor commented 5 years ago

If you have a large website please consider using the command line. You will benefit from it.

cupojoe commented 5 years ago

Thanks for responding quickly. This is great, although I still think this request is valid. Most people in need of sweeping have data that make the plugin feel like it hangs or nothing is happening. I see you listen to callbacks for when it's done via Ajax. Maybe adding a callback for progress updates?

lesterchan commented 5 years ago

Thinking out loud, we can set a timer from php max execution time to show a countdown and refresh the page after it is 0. Often, it timeout because of the 30s max execution time