KMS Cache Refresh FAQ

[collapsed title="What is the default KMS cache refresh cycle?"]

Q: What is the default KMS cache refresh cycle?

A: The default KMS cache cycle depends on the cached object.

  • entries (single, gallery list, etc.) - 10 minutes.
  • categories and other app-related cached objects - 30 minutes
  • users' display name - 24 hours
    The cache logic is only "TTL" - i.e. when it expires, KMS will recalculate (or re-fetch from API).
    KMS actively deletes/invalidates items in the cache when needed (when they, or their related items are changed.)


[collapsed title="Is there a programmatic way to control the cache refresh setting or clear the KMS cache?"]

Q: Is there a programmatic way to control the cache refresh setting or clear the KMS cache?

A: You can clear the entire KMS cache using a button in the KMS configuration page (top header). As part of module development , the developer can choose to what length an item would be stored in cache, and will also be responsible for invalidating that length when required.


[collapsed title="Which actions are cached?"]

Q: Which actions are cached? I’ve had different experienecs between different API calls. For example, when adding/removing a user from a channel it took a cache refresh to see the changes on the Channels list of the user, but after removing a user from a channel the access to the channel itself and its videos was denied immediately.

A: Almost all API calls are cached, otherwise the application would be extremely slow. The only calls that are not cached may be related to entitlements' checks (i.e. whether the user is a member of a category). If you suspect there's a bug where an action should be reflected immediately - raise it to your Kaltura representative. It may be a bug, but there may be another cause for the problem . For example - some API calls are cached per-user, because their response changes per-user. For example, if you do action A as user X, and expect to see the change in action B with user Y - you may not see the response immediately).


In This Article
Was this article helpful?
Thank you for your feedback!