SQL: Update cached values after an optimization

https://github.com/marienfressinaud/FreshRSS/issues/452