Project

General

Profile

Actions

Bug #10636

open

Multiple calls of template_url via Template API

Added by Lukas Zapletal over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When proxy templating is enabled via the smart-proxy plugin, we do HTTP REST request for each call of foreman_url method. I see multiple HTTP calls per provisioning if there are multiple calls of foreman_url in the templates. It's worse in foreman_bootdisk where we do twenty calls.

I think we can cache the value in lib/proxy_api/template.rb per request as this only changes when smart-proxy restarts.

Actions

Also available in: Atom PDF