This commit is contained in:
Jamie V 2025-02-12 15:13:56 -08:00
parent 7ebcba7336
commit 64c149b7ae

View File

@ -161,15 +161,14 @@ export default class ObjectAPI {
* @returns {Promise<DomainObject>} a promise which will resolve when the domain object
* has been saved, or be rejected if it cannot be saved
*/
get(identifier, abortSignal, forceRemote = false) {
if (!requests[identifier]) {
requests[identifier] = 0;
}
requests[identifier]++;
get(identifier, abortSignal, forceRemote = false) {
let keystring = this.#makeKeyString(identifier);
console.log('openmct get', keystring);
const now = new Date();
if (!requests[keystring]) {
requests[keystring] = 0;
}
requests[keystring]++;
if (!forceRemote) {
if (this.cache[keystring] !== undefined) {