Allow clearing cache

I kinda feel like we deserve a bit more transparency on our site dashboards than this…

image

Be using the usage tab I can see my token usage but I’m still shocked at the lack of data on the actual translations page. It would be great if the cache duration was reduced far more (should not be more than a minute or two) or there was a way to bypass it.

2 Likes

It’s a long window (up to 2 hours), but it’s not a cheap lookup… it checks all the posts back to your backfill date, multiplied by the number of languages, multiplied by content type. Someone sitting on that page triggering it every minute wouldn’t be ideal.

Even with a button, we’d probably want to rate limit that too… what sort of information are you looking for? do you need some confirmation that the process is still ongoing? are you waiting for a specific result?

2 Likes

Nothing in specific.. I am mostly making sure things are processing as expected and like to know how much longer is left.

I definitely understand how it isn’t a cheap lookup though. Maybe offering the ability to ignore it every 5-10 minutes could be great with the understanding refreshing is not ideal? My site doesn’t have that many posts (about 3000) so surely I’m not the greatest example of “this is bad” but even just storing the queue locally and decreasing as the queue is processed for more real-time updates seems like a better solution to me.