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

Custom Resource for Compiled templates

 
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
voxel
Smarty n00b


Joined: 29 Dec 2011
Posts: 3

PostPosted: Thu Dec 29, 2011 3:21 pm    Post subject: Custom Resource for Compiled templates Reply with quote

At the moment it is hard defined to use files für caching the compiled templates. It would be great to be able to define different places to store that content as it is for other resources to.

For example something like APC, XCache,.. would be alot faster than filecaching.
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 674
Location: Germany, border to Switzerland

PostPosted: Thu Dec 29, 2011 3:32 pm    Post subject: Re: Custom Resource for Compiled templates Reply with quote

voxel wrote:
At the moment it is hard defined to use files für caching the compiled templates. It would be great to be able to define different places to store that content as it is for other resources to.


Yes, this is deliberate, not accidental.

voxel wrote:
For example something like APC, XCache,.. would be alot faster than filecaching.


No it wouldn't. APC is the reason for that. It will only store OP-Code in it's cache for files it read from the Disk (yes, may be a RAM-Disk, but has to pass the sys I/O layer). Strings you store in APC would have to be eval()ed. eval()ed code cannot be cached. I had opened a bug for this ages ago. But as expected, the APC-crowd didn't even care to comment.

We're currently designing an event layer to integrate in smarty. This should allow us to hook into "file XY written to disk" and (1) inform caching facilities (like APC) to update their cache (when using funky stuff like apc.stat=0) and (2) inform other servers to grab a new copy (via ZeroMQ, Gearman, …).

Once APC (and or other systems) lift explained restrictions, be assured, we'll be the first to make this happen.
_________________
Twitter
Back to top
View user's profile Send private message Visit poster's website
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