From: <mo...@us...> - 2004-06-07 20:28:55
|
Update of /cvsroot/tikiwiki/tiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4875/lib Modified Files: Tag: BRANCH-1-8 tikilib.php Log Message: simple optimisation avoiding lotta useless requests Index: tikilib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/tikilib.php,v retrieving revision 1.373.2.46 retrieving revision 1.373.2.47 diff -u -d -r1.373.2.46 -r1.373.2.47 --- tikilib.php 5 Jun 2004 00:27:49 -0000 1.373.2.46 +++ tikilib.php 7 Jun 2004 20:23:45 -0000 1.373.2.47 @@ -4186,7 +4186,7 @@ // enter square brackets in their output; things like [[foo] // get rendered as [foo]. -rlpowell - if ($this->is_cached($link) && $cachepages == 'y') + if ($cachepages == 'y' && $this->is_cached($link)) { //use of urlencode for using cached versions of dynamic sites $cosa = "<a class=\"wikicache\" target=\"_blank\" href=\"tiki-view_cache.php?url=".urlencode($link)."\">(cache)</a>"; |