🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved strange folder

    Technical Help
    2
    4
    350
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pedro Kerche last edited by

      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?
      folder.jpeg

      1 Reply Last reply Reply Quote 0
      • Komal Sharma
        Komal Sharma UVdesk Staff mod last edited by

        @Pedro-Kerche

        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.

        P 1 Reply Last reply Reply Quote 0
        • Komal Sharma
          Komal Sharma UVdesk Staff mod last edited by

          @Pedro-Kerche

          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.

          P 1 Reply Last reply Reply Quote 0
          • Topic has been marked as solved  peopleinside peopleinside 
          • P
            Pedro Kerche @Komal Sharma last edited by

            @Komal-Sharma would you teach me how to create this cronjob. the command line to create this automation

            1 Reply Last reply Reply Quote 1
            • Komal Sharma
              Komal Sharma UVdesk Staff mod last edited by

              @Pedro-Kerche

              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
              

              cc0e2235-3298-48ca-93fd-2841a2e20863-image.png

              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
              

              9abbeb14-b027-436b-ab11-4d6bc1167c13-image.png

              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:

              6cb5f69e-97a2-4ea0-8f0e-2ea087e5f3e0-image.png

              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.

              1. 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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post