Attempt to reduce latency warnings or broken pipe due to timeouts. Tweak redis command usage to block less by fetching less data at once when persisting view counts.
Prevent "Mysqli statement execute error : Truncated incorrect DOUBLE value:" error.
Fix attachment view counts.
Updated