4
* TODO 02/03/2010: Since cache directory creation is now done primarily during the
5
* getClosestImage request, when precaching we must create cache directories as needed:
7
* if (!file_exists($filepath)) {
8
* mkdir($filepath, 0777, true);
9
* chmod($filepath, 0777);
12
* (It may be useful to limit amount of checks by doing once per directory, rather than once
15
* Note: Make sure /cache directory and it's children have proper ownship (e.g. user:www-data).
17
require_once('../../settings/Config.php');
18
require('../../api/lib/helioviewer/Tile.php');
26
$trash = new Tile($id, $zoom, $x, $y, $ts, $display);