we have set up a cron job that cleans off old orders for our Magento 1.4 shop. Stuff like failed payments, incomplete finance applications, stuff like that are checked and of older than x days, we change the status.
The cron job basically runs an SQL query that directly edits the sales_flat_order table in the database and changes the state/status according to our criteria.
My problem is that because we've made these changes via the back door, these changes aren't reflected in the sales_flat_order_grid table and therefore the orders grid view in the admin until you go into an order and save some part of it.
Is there some way I can force the sales_flat_order_grid to refresh/rebuild based on the contents of the sales_flat_order table?
Thanks, James