Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty on PHP Google App Engine (compile resource)

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
chloeF
Smarty n00b


Joined: 30 Aug 2013
Posts: 1

PostPosted: Fri Aug 30, 2013 4:59 pm    Post subject: Smarty on PHP Google App Engine (compile resource) Reply with quote

Hello,
Due to the "read only" specification of Google App Engine, Smarty cannot write the compiled files to the filesystem. Could you please add the possibility to create custom compile resources, such as you have done with the cache resources, so that we can register our own based on Memcached for example.
Thanks
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7281
Location: Lincoln Nebraska, USA

PostPosted: Fri Aug 30, 2013 6:34 pm    Post subject: Reply with quote

Although it is possible to do, ask yourself this: have you ever tried to have PHP read .php files from memory? Does it work very well? Eval-ing code is not an answer either.

PHP must read its files from the file system. Smarty compiled files are PHP files. PHP op-code caches them in memory for you.

If you really want PHP files in a memcache, you will have to use some sort of mem-disk at the file-system level that is transparent to running processes. IE. not something that Smarty directly deals with.

I don't have an answer for Google Apps, but if you did put compiled code in memcache and eval'ed it, your script execution times would take a big nose dive.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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