Due to the depletion of server capacity, I am considering deleting old caches and such in the pegatempdir.
Almost all of the capacity in the pegatempdir is occupied by two folders, "PRGenClasses" and "PRGenJava". From my research, I understand that after stopping the server, deleting these two folders and then restarting the server will regenerate them as needed. Is this correct?
I would like to confirm if there are any risks, such as issues arising from deleting the folders.
I am asking this question because I have found several similar inquiries, but the conclusions were unclear.
***Edited by Moderator: Pooja Gadige to add capability tag***
Hi @KentoO31: Deleting the cache is of no harm. You need to do this when the node is down and PEGA will build the cache after restart. Instead of deleting specific folders, I would suggest to clear the entire cache. You can also do this by deleting the extract marker file. General recommendation is not to delete the cache from server unless there is a issue because of cache. This is because system system need to build build the cache for all the rules after the startup and you will notice slowness in your application after clearing cache.
I am relieved to know that it is possible to delete the files.
Just to clarify, is it your recommendation to not delete the "PRGenClasses" and "PRGenJava" folders, but instead, delete individual cache files like "Rule_HTML_Harness_ORG_APP_Data_RULE_Action_20230102T030405_123_GMT.java" that are present within the folders?
Hi @KentoO31: General recommendation is not to clear this unless there is a cache related issue.
If you need to clear the cache folders the recommendation is to clear all cache folder inside the temp directory (LLC, PRGenBackup, PRGenJava, PRGenClasses, StaticContent, SystemManagement, PegaRULES_Extract_Marker) other than search index (if created inside temp folder) and any app specific directories instead of deleting only "PRGenClasses" and "PRGenJava" folders. You can simply remove PegaRULES_Extract_Marker file to do the same instead of deleting all folders.
Please note: System will be slow after deleting cache. You can run static assembler for applications which will help to improve response times.
Thank you for your response. We will proceed with the given information.
( Although there is no issue with the cache, we have no choice but to delete it once due to disk space constraints. This occurs only in the development environment, and there are no issues in other environments. It is presumed that the cache has accumulated due to updates during development. )