EasyEngine/easyengine

`EE_PROXY_TYPE` to be replaced by a utiliy function

Open

#1.388 geöffnet am 6. Feb. 2019

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (429 Forks)batch import
good first issuekind/enhancement

Repository-Metriken

Stars
 (1.984 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 14h) (7 gemergte PRs in 30 T)

Beschreibung

Currently, EE_PROXY_TYPE is a constant, which is the container id of the global nginx-proxy container. It is computed every time during the initialization of an command as it is present in the runner.

The command executed for it is time consuming and also required by only a handful of commands, hence it should not be in the runner. Instead it can be replaced by a utility function which computes it's value only when required.

Once the value is found for the first time, it can be stored in a constant, and on next call is_defined function can be used in the function to check if the value is already there, to skip the time consuming computation for the second time.

Contributor Guide