Solved strange folder
-
-
there is a folder on the uvdesk that every day downloads files and fills up my HD. when I delete nothing happens with the uvdesk, but the next day it downloads the folders again. could you tell me what it would be?
These are files within the /var/cache directory are application cache files which are auto-generated during the lifetime of your application. Since these are cache files, deleting won't cause any issues with your application. In order to resolve this, we would suggest you to setup a cronjob to routinely clear these cache files at regular intervals if you're concerned about it consuming too much of your disk space.
Alternatively, it seems that you are currently in the development environment, in which a lot of cached files are generated. What you could do instead is switch to the production environment, the amount of related cache files & logs generated wouldn't be nearly as much.
-
there is a folder on the uvdesk that every day downloads files and fills up my HD. when I delete nothing happens with the uvdesk, but the next day it downloads the folders again. could you tell me what it would be?
These are files within the /var/cache directory are application cache files which are auto-generated during the lifetime of your application. Since these are cache files, deleting won't cause any issues with your application. In order to resolve this, we would suggest you to setup a cronjob to routinely clear these cache files at regular intervals if you're concerned about it consuming too much of your disk space.
Alternatively, it seems that you are currently in the development environment, in which a lot of cached files are generated. What you could do instead is switch to the production environment, the amount of related cache files & logs generated wouldn't be nearly as much.
-
peopleinside 30 Mar 2023, 09:00
-
@Komal-Sharma would you teach me how to create this cronjob. the command line to create this automation
-
would you teach me how to create this cronjob. the command line to create this automation
Please follow the below steps for running the cronjob clear cache:
Step 1: Open your terminal with your project root directory
Step 2: Now you will run the below command in project root directory:
$ crontab -e
After edit your crontab save and close the crontab for now (CTRL + X, CTRL + Y, then ENTER if you selected nano).
Step 3. Now check your view the contents of your crontab, but not edit it, you can use the following command:
$ crontab -l
Step 4: Now check the setup is correct or not, so you will run the showing file path command till end in your crontab terminal check the below screenshot:
Note:
If you are not showing like this, so you will followed the below steps:
Go to the project root directory with you want to delete the folder path, and check the current directory of your project folder, run the below command:
pwd
It will show the current project file path.
- Once again check this is working or not, please follow the above 4 step again. You will run the showing file path command till end in your crontab terminal.
Now your crontab is saved, and project folder removed in every 2 days.
Also, you can check the below links for more information:
https://stackoverflow.com/questions/16325350/setting-cron-job-to-delete-file-after-24-hours