Your Time:
Our Time:
← Back to discussions

tmp-album

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 2 replies, 2 voices, and was last updated 10 years, 7 months ago by Anonymous.

  • 2016-02-13 at 2:31 am
    Support Expired
    #12910
    benjaminenfield1
    Participant
    • Topics: 3
    • Replies: 5
    • Total posts: 8
    • Post count: 10

    Hi,

    I’ve noticed that as files are downloaded using the download all button, the site stores this in tmp-album. Is there any suggestions as to how this should be purged as this file is currently hosted on an SSD with 300gb of storage, rather than to my RAID1 2TB drive. My concern is how quickly this could fill, however, I do not want to purge too often to the point that I am interrupting users.

    My assumption, looking at the script, this is created once and used once every time a user hits download all, so I assume it would be safe to purge files from this folder using a cron job every hour or so?

    Any help is appreciated.

    2016-02-22 at 2:40 pm
    #13013
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Sorry for the delay in response as we were investigating your issue. You can change the path here,

     $tmpdir = ABSPATH . 'wp-content/tmp-album/'.$albumid.'-'.mt_rand(100,999).'/';   
      $download_file = ABSPATH . 'wp-content/tmp-album/album-' . $post->post_name .'.zip';

    in music_all_download.php file. Once all the files are downloaded in tmp-album, it will automatically removes all the files from the folder as it is a temporary folder, it can’t store the files.

    2016-03-11 at 10:13 am
    #13321
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.