Scripts
[ class tree: Scripts ] [ index: Scripts ] [ all elements ]

Procedural File: clean.php

Source Location: /scripts/clean.php



Page Details:

clean.php - cleans old files: images, map results, PDF and SOAP XML cache

Cleans:

  • Images not associated with map result
  • Images associated with map result / SOAP XML, including corresponding map result / SOAP XML
  • Exported PDF files as well as temporary images used to generate them
  • Empty map results /SOAP XML
Usage: ./clean.php <cache_image_max_age> [<simple_image_max_age>]




Tags:

version:  $Id: clean.php,v 1.9 2005/09/20 09:23:17 asaunier Exp $
author:  Yves Bolognini <yves.bolognini@camptocamp.com>


Includes:







deleteOldFiles [line 173]

void deleteOldFiles( string $cachedir, [bool $deleteAll = false])

Deletes files older than cache age from given directory.



Parameters

string   $cachedir   path of directory to clean
bool   $deleteAll   if true, all old files are deleted, else (default) only empty ones.
[ Top ]



loadMapResults [line 99]

array loadMapResults( string $resultCachedir)

Gets all links between images and MapResults



Parameters

string   $resultCachedir  
[ Top ]



loadSoapXMLs [line 142]

array loadSoapXMLs( string $soapCachedir)

Gets all links between images and SOAP XMLs



Parameters

string   $soapCachedir  
[ Top ]



Documentation generated on Fri, 21 Sep 2007 13:30:33 +0200 by phpDocumentor 1.3.0RC3