Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Cacheless Blade templates #142

Closed
tillkruss opened this issue Jul 22, 2016 · 2 comments
Closed

Cacheless Blade templates #142

tillkruss opened this issue Jul 22, 2016 · 2 comments

Comments

@tillkruss
Copy link

Currently Blade templates require a path on the local filesystem for caching. See: laravel/framework#14291

It would great if Blade templates could be compiled in-memory from any string, without ever touching the filesystem. Furthermore it would be nice if a driver/store for Blade template could be configured, similar to the session.driver configuration. That way Blade caches could live in Redis, APC, Memcache, a SQL database, the local file system or just in-memory.

["file", "array", "redis", "apc", "memcached", "database"]

I'd be happy to provide a PR.

@franzliedke
Copy link

I don't think that's a great idea. Blade templates are not only cached, they are written to a file to be executable. The alternative would be eval and, I suppose, horrible performance.

@garygreen
Copy link

garygreen commented Aug 19, 2016

Doesn't opcode cache put the files in memory anyway?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants