Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

exclude option in clear_all_cache, clear_compiled_tpl

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
smartymoon
Smarty Rookie


Joined: 29 Apr 2003
Posts: 15

PostPosted: Sun May 04, 2003 3:24 pm    Post subject: exclude option in clear_all_cache, clear_compiled_tpl Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed May 07, 2003 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP