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

Mark Allen mark at allenclan.co.uk
Fri Nov 20 13:46:06 EST 2020


Bingo! That did the job!

Thanks very much for that Vlad - you've saved me hours of head-scratching!

On Fri, 20 Nov 2020 at 13:42, Vlad Patrascu <vladp at opensips.org> wrote:

> I did forget to escape the "*" character in the example I gave, so this
> should work:
>
> opensips-cli -x mi cache_remove_chunk "*" other
>
> Regards,
>
> --
> Vlad Patrascu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 20.11.2020 15:25, Mark Allen wrote:
>
> thanks Vlad - I've tried it but I get
>
> ERROR: command 'cache_remove_chunk' returned: -32602: Invalid params
>
> On Fri, 20 Nov 2020 at 13:21, Vlad Patrascu <vladp at opensips.org> wrote:
>
>> 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 Developerhttp://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 listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> 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/e108ddf0/attachment.html>


More information about the Users mailing list