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

Handler For Compiled And Cached Data

 
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
Hinrich
Smarty Rookie


Joined: 18 Apr 2003
Posts: 33

PostPosted: Fri Dec 05, 2003 5:51 pm    Post subject: Handler For Compiled And Cached Data Reply with quote

It would be nice, if I can have control on the storage location of the cached and the compiled files. In some cases I would like to store the cached and compiled results not on the file system, but in a database.

For the templates I can define resources and have the control on the storage position.
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Dec 05, 2003 6:43 pm    Post subject: Reply with quote

for cached files you can define a custom cache_handler_func. see: http://smarty.php.net/manual/en/section.template.cache.handler.func.php

compiled templates cannot be stored elsewhere. smarty utilisizes include() to display them.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hinrich
Smarty Rookie


Joined: 18 Apr 2003
Posts: 33

PostPosted: Sat Dec 06, 2003 8:01 pm    Post subject: Reply with quote

messju wrote:
for cached files you can define a custom cache_handler_func.


Thanks. My fault. I didn't searched the docs before.

messju wrote:
compiled templates cannot be stored elsewhere. smarty utilisizes include() to display them.


Anyway, it would be a great feature. In this case I can use Smarty without have any problems on open_base_dir, save_mode and those stuff.
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