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 TemporaryFileCachedRemoteGetRequest to cache cURL request #414

Merged
merged 8 commits into from
Dec 1, 2021

Conversation

ediamin
Copy link
Collaborator

@ediamin ediamin commented Nov 16, 2021

This PR added a temporary file cache system to cache the remote request response. This will improve the performance issue described in issue #292.

@ediamin
Copy link
Collaborator Author

ediamin commented Nov 16, 2021

@schlessera Need your suggestions to add the test cases for TemporaryFileCachedRemoteGetRequest. I'm not sure what would be the best way to write tests to handle the file_get_contents and file_put_contents methods.

@schlessera
Copy link
Collaborator

I'm not sure what would be the best way to write tests to handle the file_get_contents and file_put_contents methods.

Filesystem-based manipulations can be tested in an easy way with https://github.com/bovigo/vfsStream.

@ediamin
Copy link
Collaborator Author

ediamin commented Nov 23, 2021

@schlessera Updated the PR with test cases. Please take a look.

Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
@schlessera schlessera added this to the 0.9.0 milestone Dec 1, 2021
@schlessera schlessera merged commit fbc3254 into main Dec 1, 2021
@schlessera schlessera deleted the enhance/292-amp-runtime-css-performance branch December 1, 2021 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants