|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
smartymoon Smarty Rookie
Joined: 29 Apr 2003 Posts: 15
|
Posted: Sun May 04, 2003 3:24 pm Post subject: exclude option in clear_all_cache, clear_compiled_tpl |
|
|
clear_all_cache, clear_compiled_tpl
these commands clear every file in the folder
but i would like to keep index.html file
so nobody can get the list of the folder
can we have exclude option like
clear_all_cache(exclude="index.html,index.php")
moon |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed May 07, 2003 3:25 am Post subject: |
|
|
Hmmm.
Why would you need this? A best practice is to ONLY make the required PHP files and any images/css/etc. available in your public web directories.
All of your library code, templates and temporary files should live in directories not available to the web server.
eg.
Website is configured to reach the following directories:
/www
/mysite
/images
Website is NOT configured to reach the following directories:
/local
/lib
/php
/smarty
/sites
/mysite
/templates
/configs
/lib
/tmp
/cache
/templates_c
2c |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|