Clean cache and Temporary folders in Bizagi



Summary

When developing a project in Bizagi, sometimes, the changes made (e.g., new attributes, new expressions, updating an Environment Parameter value) are not automatically reflected in the Work Portal, and when opening the portal some errors are thrown stating that an object does not exist.
This problem is generally presented when the account used by the tool does not have enough permissions or there are issues when Bizagi tries to delete temporary files.

The following, are some scenarios where the cache and temp cleaning is supposed to be done automatically:

1. When you change your forms
2. When you add new expressions
3. When you are developing
4. When you change environment parameters
5. When you make changes on your Bizagi Model

Please, bear in mind that as mentioned above, sometimes the changes are not reflected and you must perform the operation manually.

Applies to

Bizagi Studio .NET 10.x and 11.x

What you need to do?

1. Stop Bizagi Web services (you may use IISRESET /Stop in a command prompt with administrator privileges) and the Service Scheduler (refer to https://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx in order to learn how to stop a Windows Service).

2. Delete the content of the following folders:

  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
  • C:\Bizagi\Enterprise\Projects\[ProjectName]\EntityManager
  • C:\Bizagi\Enterprise\Projects\[ProjectName]\ComponentLibrary
  • C:\Bizagi\Enterprise\Projects\[ProjectName]\SOA\
  • C:\Bizagi\Enterprise\Projects\[ProjectName]\Temporary\

3. Restart the services stopped in step 1.
For restarting Bizagi Web services, you may use IISRESET /Start in a command prompt with administrator privileges.
For restarting the Service Scheduler (refer to https://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx in order to learn how to start a Windows Service).

4. Open the following URL of your project: http://yourServer/yourProject/webservices/cache.asmx
It will display a set of web methods:


Click (execute) the methods: CleanRenderCache, CleanUpCache (use “*” as value for both parameters)


Please consider each one of the methods description, to better use them for the appropriate scenario:

  • CleanRenderCache: it restarts all render cache.
  • CleanTracing: cleans all trace records.
  • CleanUpCache: cleans up resources filtered by input parameters.
  • CleanUpCacheEntries: cleans up resources given by given parameters.
  • FreeLocalizationResources: it removes all multilanguage cache. Please use ReleaseLocalizationResources since the method FreeLocalizationResources is deprecated.
  • UpdatePortal: it loads the application.
  • CleanParameters: cleans Web application settings.
  • CleanUpRuleCache: removes rule cache records.