Description
Improvement description
There are multiple places in the code in pimcore/pimcore
and other Pimcore repositories where priority (or a similar concept) is used. However, it is a both used slightly inconsistently and ambiguously.
For example, with redirects, a higher number for priority means more important and it will be processed earlier, but in other places a higher number means a later priority and it is not as important. With Cache, it's not clear.
Generally speaking, in computing a high priority has a lower number. This is because it of how it is used in normal speech, consider these expressions: "You are our number one priority" means someone is more important than "you are our number 98th priority".
First place in the queue is next in line after all. And this is reflected elsewhere in computing, for example:
- nice – a lower number has a higher scheduling priority.
- Priority levels – a lower number has a higher level.
- Drupal weight – by default orders lower numbers towards the top (ascending).
- Stack Exchange: Priority value meaning
- DNS MX record priority — According to RFC 5321, the lowest-numbered records are the most preferred.
- Dijkstra’s algorithm — a lower number is considered more important.
- Networking QoS: Differentiated services — lower priority has a higher numeric DSCP Value.