Added cache data size check on `$cache->db->store()`, closed #1235
SFS fix #1236 by @Uch99
Fix #1239