From: <sy...@us...> - 2003-09-30 13:05:06
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1:/tmp/cvs-serv17990 Modified Files: tiki-modules.php tiki-user_preferences.php Log Message: quick fix+optimisation Index: tiki-modules.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-modules.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- tiki-modules.php 29 Sep 2003 20:09:59 -0000 1.17 +++ tiki-modules.php 30 Sep 2003 13:05:01 -0000 1.18 @@ -106,9 +106,11 @@ } $r["data"] = $data; - $fp = fopen($cachefile, "w+"); - fwrite($fp, $data, strlen($data)); - fclose ($fp); + if (!file_exists($nocache)) { + $fp = fopen($cachefile, "w+"); + fwrite($fp, $data, strlen($data)); + fclose ($fp); + } } else { //print("Usando cache<br/>"); $fp = fopen($cachefile, "r"); @@ -185,9 +187,11 @@ } $r["data"] = $data; - $fp = fopen($cachefile, "w+"); - fwrite($fp, $data, strlen($data)); - fclose ($fp); + if (!file_exists($nocache)) { + $fp = fopen($cachefile, "w+"); + fwrite($fp, $data, strlen($data)); + fclose ($fp); + } } else { //print("Usando cache<br/>"); $fp = fopen($cachefile, "r"); Index: tiki-user_preferences.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-user_preferences.php,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- tiki-user_preferences.php 29 Sep 2003 15:28:38 -0000 1.30 +++ tiki-user_preferences.php 30 Sep 2003 13:05:01 -0000 1.31 @@ -73,8 +73,6 @@ $smarty->assign('language', $_REQUEST["language"]); include ('lang/' . $_REQUEST["language"] . '/language.php'); - //$modlib->clear_cache();// Until the module cache is not function of the language or the cache keeps the {tr} or the module cache is replaced by the Smarty cache, - // the bug "when you change the language, some modules don't change language before a while " will remain } } |