Fixed a bug and added a new setting.

Fixed a bug and added a new variable named " overCacheCountRelease " to
control the cache-memory.