-
Is it possible to merge caches (derivate, source, info) from multiple cantaloupe deployments? Are caching hashes backward compatible? E.g. version 3.3.1 and 4.4.1? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, as long as the identifiers don't clash between the two deployments. For example, if deployment 1 knows of an
The cache key format varies between the different cache implementations, but basically there are two formats:
Additionally, the info serialization has changed a few times. These changes should be backward compatible so that current software versions can understand previous serializations, but the inverse may or may not be the case (it doesn't really get tested). There isn't a firm policy on maintaining stable cache keys. I try not to break them unnecessarily, but if there is some kind of redesign that I perceive to be in the best interests of the software, then I will usually go ahead with it and break them. This may happen across new minor versions (x.x), but not bugfix versions (x.x.x). Stale cache files shouldn't cause any problems by remaining around, other than wasting space, and should eventually get cleaned up by the cache worker or by a PurgeInvalidFromCache command. |
Beta Was this translation helpful? Give feedback.
Yes, as long as the identifiers don't clash between the two deployments. For example, if deployment 1 knows of an
image.jpg
that is 500x500 pixels, and deployment 2 knows of a differentimage.jpg
that is 750x750 pixels, that will be a problem.The cache key format varies between the different cache implementations, but basically there are two formats: