use $smaxage param in hook