nice names for url in browser/ nice script to get rid of cache

From: Date: Tue, 23 Jul 2002 01:22:29 +0000
Subject: nice names for url in browser/ nice script to get rid of cache
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5384@lists.php.net to get a copy of this message
Hi, Do we have control over the cached file names in Smarty?? If not how do you do it. I saw a caching script on zend that does it, the renaming is fine but Smarty does the caching so much better. My scenario is as follows: The page that I work on in made of one php file and via the template there are different articles loaded. I made like this: index.php?article=1&menu=2 I have it not yet running so I don't know how the urls will look like but I want to know what can I do to have the names of the urls to be e.g. the titles of the pages without spaces? tronics By the way I wrote a function to clear that cache via file commands because clear cache doesn't work for me- it doesn't do anything on Smarty 2.2: $obj="here goes your temp directory full path"; function cleanitforrealnow($obj) { if (is_dir($obj)) { //status("Directory: ", $obj); if ($fd = opendir($obj)) { while (($child = readdir($fd)) != false) { if (!strcmp($child, ".")) { continue; } if (!strcmp($child, "..")) { continue; } $fullpath = "$obj/$child"; fix($fullpath); } if ($obj!=$GLOBALS["dir"]){ rmdir($obj); } } else { error("Error reading dir", $obj); } } else if (is_file($obj)) { unlink ($obj); } }

« previous php.smarty.general (#5384) next »