Change apc settings to variables

Adds apc.ttl and apc.user_ttl as variables instead of hard coded values