IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2010, 1:20:48 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Bug fix for tmp files deletion (doc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/README

    r28613 r28615  
    161161        Regression line is also plotted (correlation coefficient is
    162162        shown in title).
     163
     164Plotting with PHP and temporary files
     165=====================================
     166
     167Plots in PHP use temporary files (to provide data to dvo scripts and
     168to store result images). Unfortunately, if the files are deleted at
     169the end of main php script, the browser does not have the time to
     170render the image. If the file is not deleted, they remain in the /tmp
     171directory leading to disk space exhaustion.
     172
     173To avoid this problem, the function delete_old_tmp_files() in ipp.php
     174was created. It checks the /tmp directory and removes all files
     175belonging to the apache user and that are older than 15 minutes.
     176delete_old_tmp_files() is called at the beginning of the
     177autocodeImage.php template script (line 4) and is therefore present in
     178all generated plotting scripts.
Note: See TracChangeset for help on using the changeset viewer.