+ Send cache type as string parameter
added constant unlimited duration
moved constant UNLIMITED_DURATION