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.10 2008-05-15 16:59:31 asaunier Exp $
author:  Yves Bolognini <yves.bolognini@camptocamp.com>


Includes:







deleteOldFiles [line 174]

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 ]



usage [line 192]

void usage( )

Prints usage



[ Top ]



Documentation generated on Thu, 04 Sep 2008 11:39:10 +0200 by phpDocumentor 1.3.0RC3