Cache subdomain in database and add setting for product loading method (server side vs client side)