Hallo liebe Gemeinde,
Ich habe Gtranslate im Einsatz und leider bläht es den Cache-Ordner täglich auf mehrere 100MB auf. Lässt es sich realisieren, dass sich der Cache-Ornder mindestens 1x am Tag selber leert?
So schaut die Datei aus, aber Cachetime aus 0 setzen bringt auch nichts:
<?php
define('LICENSE', 'license.dat');
define('CACHETIME', 0); 5 days
define('MAINLANG', 'de'); // en, ar, bg, hr, cn, ct, cs, da, et, tl, fi, fr, gl, el, iw, hi, es, nl, id, ja, ca, ko, lt, lv, mt, de, no, pt, ru, ro, sr, sk, sl, sv, th, tr, uk, hu, vi, it, pl, sq
if (!function_exists('file_put_contents')) {
function file_put_contents($filename, $data) {
$f = @fopen($filename, 'w');
if (!$f) {
return false;
} else {
$bytes = fwrite($f, $data);
fclose($f);
return $bytes;
}
}
}
if (!function_exists('file_get_contents')) {
// Define function and arguments
function file_get_contents($file, $include=false) {
// Varify arguments are correct types
if (!is_string($file)) return(false);
if (!is_bool($include)) return(false);
// Open the file with givin options
if (!$handle = @fopen($file, 'rb', $include)) return(false);
// Read data from file
$contents = fread($handle, filesize($file));
// Close file
fclose($handle);
// Return contents of file
return($contents);
}
}
Vielen Dank für die Hilfe


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen