Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

purge cache in CLI ?

Stephane DUGRAVOT March 7, 2023

We need to purge cache in CLI (precisely the "Settings (Persistence)" cache). Of course we know how to do that from the GUI, but wonders if it could be possible from CLI. We do not find that with APIs. Is it possible to purge this cache from CLI ?
Thank you,
Regards,
Stephane.

2 answers

1 accepted

0 votes
Answer accepted
Stephane DUGRAVOT March 8, 2023

It works in python :

from atlassian import Confluence

confluence = Confluence(
url='https://confluence.example.fr',
username='admin',
password='XXXXXXXXX')

confluence.clean_package_cache(cache_name='com.atlassian.bandana.BandanaPersister')
0 votes
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2023

Hello @Stephane DUGRAVOT ,

Could you please give details on what CLI you mea? (BoB Swift CLI addon/AtlasPS, Python CLI...) ?

Stephane DUGRAVOT March 7, 2023

Hi,

We tried Bob swift and APIs call (curl). Found nothing in both of them.

Stephane.

Like Andrii Maliuta likes this
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2023

@Stephane DUGRAVOT ,

As I can see, there is no direct API to purge the cache directly. I suppose that you can just try to develop a custom REST API with Atlassian SDK to trigger it via network or use some Web crawling to it on behalf of a user.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.13.7
TAGS
AUG Leaders

Atlassian Community Events