Fix variable declaration problem

This would only shows up when cache max age is not an int.