xwp / wp-dependency-minification

Dependency Minification plugin for WordPress
http://wordpress.org/plugins/dependency-minification/
52 stars 10 forks source link

Show minification request date/time in admin page #43

Closed shadyvb closed 3 years ago

shadyvb commented 10 years ago

Sometimes the request is not carried out successfully, be it for a faulty URL, or a security barrier or anything else.

We need to show date/time of requests, and accordingly warn the user of such delays, and probably give him a way to instantly generate those minifed groups ?

westonruter commented 10 years ago

Good idea. Yeah, there could be a button to force-trigger the action that normally would be triggered by wp-cron.

How would we report if a request was carried out successfully or not? How could we detect for such errors if cron can't be pinged in the first place.

shadyvb commented 10 years ago

@westonruter Reporting a job that has a request time of X while X >= cron interval or something.

And on the force-trigger call we can make a non-async AJAX so we get the result instantly.

westonruter commented 10 years ago

I don't think we have to go the route of doing a synchronous XHR. As long as the request is done in-page and not in background via cron, I think we're good.

shadyvb commented 10 years ago

That's actually what i meant, i didn't mean asyc: false ( although it pretty much seems so! ).