Re: [SMARTY] Version Updates
| From: | Martin Kloss | Date: | Thu, 06 Mar 2003 15:32:17 +0000 |
| Subject: | Re: [SMARTY] Version Updates | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8448@lists.php.net to get a copy of this message | ||
At 16:23 06.03.2003 +0100, you wrote:
smarty doesn't test the compiled files for the smarty version, that is an extra step that would mostly be unnecessary. Just delete all the files upon an upgrade. everything in /templates_c/, everything in /cache/ and if using an accelerator, restart the webserver. Uh, bad news. Many ISP uses wwwrun.nogroup for the server. The compiled or cached files are owned by this user. So I am not able to remove them.I have a function in a cms admin script to remove all cached and compiled files when the user enters new content into the db. It simply removes all files with a shell command: passthru ("rm -r ../site/templates_c/*"); passthru ("rm -r ../site/cache/*"); Martin. Martin Kloss Need music? http://www.selling-sound.com Like the author? Buy the book at: http://www.amazon.de/exec/obidos/ASIN/3898422194/lingmmugd Get your daily dose of Lingo at the LingoPark: http://www.lingopark.com