Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I force Smarty to store compiled templates into database rather than file on the disk?

0
Posted

Can I force Smarty to store compiled templates into database rather than file on the disk?

0

Not yet… But perhaps you could find someone to implement it A: You shouldn’t, it will be a great performance disadvantage, because PHP cannot execute them directly from database. A: Technically, you can use PHP’s recently added streams API to implement your storage type at the PHP level. This would enable PHP to include your code just as if it was a local file; unfortunately, this isn’t trivial to implement and would likely require some customizations to Smarty as well.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123