*

Nick N

  • **
  • 28 posts
"Uploads" & "Temp" folders
« on: July 15, 2022, 03:15:16 PM »
Hello!
1. How to move folders:
\oc-content\uploads\0\
\oc-content\uploads\temp\
to the root of the site (for example in "domains" folder)?
2. What is the folder "temp" for? How often should it be cleaned?

*

MB Themes

Re: "Uploads" & "Temp" folders
« Reply #1 on: July 15, 2022, 10:08:05 PM »
Osclass does not support change location of those folders.
Temp one should be cleaned by each feature that use it
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nick N

  • **
  • 28 posts
Re: "Uploads" & "Temp" folders
« Reply #2 on: October 30, 2022, 12:19:29 PM »
1. I see that the 'Temp' folder in \oc-content\uploads\ is not cleared. Is it problem with osclass v8.0.2 settings?
2. What is the table 't_log' in database for?
« Last Edit: October 30, 2022, 12:38:32 PM by Nick N »

*

Lida phanora

  • **
  • 25 posts
Re: "Uploads" & "Temp" folders
« Reply #3 on: October 30, 2022, 02:15:52 PM »
can we make white label for change directory folder name like oc-content, oc-admin and favicon just one click from admin panel in next version ?
now when we access image URl it will show original osclass favicon also when acess admin will show osclass favicon too,

*

MB Themes

Re: "Uploads" & "Temp" folders
« Reply #4 on: November 02, 2022, 08:14:59 AM »
1. I see that the 'Temp' folder in \oc-content\uploads\ is not cleared. Is it problem with osclass v8.0.2 settings?
2. What is the table 't_log' in database for?

It should be cleaned by CRON once per hour, but it cares just about Osclass data (QQ files).
Code: [Select]
    $qqprefixes = array('qqfile_*', 'auto_qqfile_*');
    foreach ($qqprefixes as $qqprefix) {
      $qqfiles = glob(osc_content_path().'uploads/temp/'.$qqprefix);
      if(is_array($qqfiles)) {
        foreach($qqfiles as $qqfile) {
          if((time()-filemtime($qqfile))>(2*3600)) {
            @unlink($qqfile);
          }
        }
      }
    }
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots