Fixed database caching bug after code clean up, now there is a variable cache_db in app.phpexpiration time