Use two queries instead of doing the addition in PHP?
`SELECT size FROM filecache WHERE parent = ? AND storage = ? AND size = -1;`
If result empty:
`SELECT SUM(size) FROM filecache WHERE parent = ? AND storage = ?;`