Caches / Catalog Cache

26 views
Skip to first unread message

Vivek Manpuria (Vivek)

unread,
Apr 17, 2025, 4:19:56 AM4/17/25
to Kill Bill users mailing-list
Hi,

Please look into the following 3 questions regarding caches / catalog cache:

1. Is there an API to get the name of all the caches, including the default catalog cache?
There is an admin api to delete a cache using the cache's name. However, no api is listed to fetch the names of all the caches.

2. In case, invalidating a catalog cache is not allowed by design, does that mean that the catalog is cached indefinitely? 

3. Is there any configuration for defining how long a cache is valid for? How long are the caches valid for by default?
Browsing through the configuration documentation, i could not find any such property.

Thank you,
Vivek

karan bansal

unread,
Apr 18, 2025, 4:02:11 AM4/18/25
to Kill Bill users mailing-list
Hi Vivek,

There is no api to get the cache names, but you can refer to the names here. Similarly this is the default cache config. However, it would be great if you can explain the full context and requirement of these operations. Usually not much tweaking is needed around these.

Regards
Karan

Vivek Manpuria (Vivek)

unread,
Apr 21, 2025, 2:30:00 AM4/21/25
to Kill Bill users mailing-list
Thanks Karan.

I had wanted to find out that when a new catalog is uploaded, whether we would have to manually invalidate the cache. But, it sounds like caching of the new catalog will happen automatically and immediately.

I have a follow up question regarding the GET 1.0/kb/catalog API. Currently, the api returns a list of priceLists and products in the JSON object but not the rules.
We have a preference to read the rules from the catalog in JSON format. Is there any plan to update the JSON api to return rules along with priceLists and products? If not, then we will call the XML api, GET 1.0/kb/catalog/xml and then read the rules from the XML response. 

Regards,
Vivek

Shaun Forgie

unread,
Apr 21, 2025, 4:44:49 PM4/21/25
to Vivek Manpuria (Vivek), Kill Bill users mailing-list
Hi Vivek,

That is a very good question. I would also like to deal with rules/ policy independently of the products and plans.


Rgs
Shaun

--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/killbilling-users/b16ec844-6dc9-4983-a804-2334a907976en%40googlegroups.com.


--
Shaun Forgie [Principal] - Method Maker Ltd
57a McIntyre Rd, Manukau 2022, Auckland, New Zealand
Mobile +64 21 666 910 https://www.linkedin.com/in/shaunforgie/

Vivek Manpuria (Vivek)

unread,
Apr 25, 2025, 8:44:29 AM4/25/25
to Kill Bill users mailing-list
ok. Until then, we will call the Get Catalog XML (/1.0/kb/catalog/xml) API to read the rules from the XML file.

Thank you,
Vivek

Reply all
Reply to author
Forward
0 new messages