Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP file caching #41

Closed
jasny opened this issue May 31, 2017 · 2 comments
Closed

Add PHP file caching #41

jasny opened this issue May 31, 2017 · 2 comments

Comments

@jasny
Copy link
Collaborator

jasny commented May 31, 2017

We can leverage opcode caching to create a very fast caching method in PHP 7+.

To set the cache use var_export to get the value as PHP code and than write that to a PHP file.
To get the cache simply use include.

Read more about it in this article.

@stevevance
Copy link

I really like this idea. I wish that the blog post you linked to @jasny had a bit more code, though, so we could start implementing that concept right away.

@jasny
Copy link
Collaborator Author

jasny commented Jun 14, 2018

Implemented in v3

@jasny jasny closed this as completed Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants