|
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 |
chloeF Smarty n00b
Joined: 30 Aug 2013 Posts: 1
|
Posted: Fri Aug 30, 2013 4:59 pm Post subject: Smarty on PHP Google App Engine (compile resource) |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Aug 30, 2013 6:34 pm Post subject: |
|
|
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 |
|
|
|
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
|