CMDBuild Forum

What operation executes the "Administration->Setup->Server management->Clear cache" button?

Hi,

I'm trying to load data automatically in cmdbuild by inserting data directly in the database. I've managed to succesfully perform the load but now I build need to automate the operation of clearing tjhe cache, as the "lookup" menus are not showing correctly until I perform that operation.

 

I've tried to delete the contents of the "work" path under tomcat, but that doesn't make the trick. Would someone please tell me what operation performs the "Clear Cache" button and if it's possible to perform those operations from outside the application?

 

Thanks a lot in advance.

Alex

In the CMDBuild Administrator Module, menu Configuration, Server management page, you can find a "Clear cache" button (Administrator Manual page 126).

Beware that manually insert data into the database is a critical operation (the database may become inconsistent) and is recommended for advanced users.

CMDBuild Team

Previously Tecnoteca wrote:

In the CMDBuild Administrator Module, menu Configuration, Server management page, you can find a "Clear cache" button (Administrator Manual page 126).

Beware that manually insert data into the database is a critical operation (the database may become inconsistent) and is recommended for advanced users.

CMDBuild Team

 

Yes, as I said in my previous post, I know that button exists. What I need to know is what operations are performed when you clic that button, as I need to perform those operations from outside the application to fully automate the data load process without the need of manual intervention.
Dear Alex,
 
when you select it, some internal caches (data model structure, some filesystem information, translation information, DMS metadata, and so on) are cleared. We are working for a smart use of caching that should not require user intervention.
 
Best regads.
 
-- CMDBuild Team
 
Previously Alex wrote:
Previously Tecnoteca wrote:

In the CMDBuild Administrator Module, menu Configuration, Server management page, you can find a "Clear cache" button (Administrator Manual page 126).

Beware that manually insert data into the database is a critical operation (the database may become inconsistent) and is recommended for advanced users.

CMDBuild Team

 

Yes, as I said in my previous post, I know that button exists. What I need to know is what operations are performed when you clic that button, as I need to perform those operations from outside the application to fully automate the data load process without the need of manual intervention.

 

Ok, thanks.
So, ¿the only way is to restart tomcat? There is no *.jar or similar we can call from a shell script to perform this?
 
Thanks again.
 
Best regards,
Alex.
 
Previously Tecnoteca wrote:
Dear Alex,
 
when you select it, some internal caches (data model structure, some filesystem information, translation information, DMS metadata, and so on) are cleared. We are working for a smart use of caching that should not require user intervention.
 
Best regads.
 
-- CMDBuild Team
 
Previously Alex wrote:
Previously Tecnoteca wrote:

In the CMDBuild Administrator Module, menu Configuration, Server management page, you can find a "Clear cache" button (Administrator Manual page 126).

Beware that manually insert data into the database is a critical operation (the database may become inconsistent) and is recommended for advanced users.

CMDBuild Team

 

Yes, as I said in my previous post, I know that button exists. What I need to know is what operations are performed when you clic that button, as I need to perform those operations from outside the application to fully automate the data load process without the need of manual intervention.

 

 

Dear Alex,
 
when an administrator user selects the "Clear Cache" button no restart is performed. You can simply call the same JSON-RPC method tha UI calls, but you would need an authenticated session. Since version 2.4.x, for obtain the session's token you can simply use REST methods.
 
Best regards.
 
-- CMDBuild Team
 
Previously Alex wrote:
Ok, thanks.
So, ¿the only way is to restart tomcat? There is no *.jar or similar we can call from a shell script to perform this?
 
Thanks again.
 
Best regards,
Alex.
 
Previously Tecnoteca wrote:
Dear Alex,
 
when you select it, some internal caches (data model structure, some filesystem information, translation information, DMS metadata, and so on) are cleared. We are working for a smart use of caching that should not require user intervention.
 
Best regads.
 
-- CMDBuild Team
 
Previously Alex wrote:
Previously Tecnoteca wrote:

In the CMDBuild Administrator Module, menu Configuration, Server management page, you can find a "Clear cache" button (Administrator Manual page 126).

Beware that manually insert data into the database is a critical operation (the database may become inconsistent) and is recommended for advanced users.

CMDBuild Team

 

Yes, as I said in my previous post, I know that button exists. What I need to know is what operations are performed when you clic that button, as I need to perform those operations from outside the application to fully automate the data load process without the need of manual intervention.