[OpenSIPS-Users] Clear local cache collection without OpenSIPS 3.1 restart

Vlad Patrascu vladp at opensips.org
Fri Nov 20 13:19:01 EST 2020


Hi Mark,

The command you should run is:

opensips-cli -x mi cache_remove_chunk * other

I will also update the docs as the example is outdated so thanks for 
pointing it out!

Regards,

-- 
Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

On 20.11.2020 13:47, Mark Allen wrote:
> I have local cache collections setup in my script:
>
> loadmodule "cachedb_local.so"
>     modparam("cachedb_local", "cache_collections", "general; other;")
>     modparam("cachedb_local", "cachedb_url", "local:general:///general")
>     modparam("cachedb_local", "cachedb_url", "local:other:///other")
>
> I want to be able to use opensips-cli to clear the contents of the 
> "other" collection from the command line or a script without needing 
> to restart OpenSIPS or losing the contents of the "general" cache 
> collection. I've looked at the cachedb_local documentation for 
> exported MI functions but I don't understand how this translates into 
> a valid opensips-cli command.
>
> Any help gratefully received!   :D
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201120/7bb859d6/attachment.html>


More information about the Users mailing list