Repository navigation
Low memory, PHP7.4 setups #287
Answered
by
NicolasCARPi
sunshinephotocart
asked this question in
Q&A
|
I am trying to use this in a WordPress plugin where there are low end servers using PHP 7.4. I am using the ZipStream 2.2.6 to work with PHP 7.4. Is there a way to use this class to use less memory? I have instances where we are adding say 50 x 4MB images and it will run out of PHP memory and the zip file fails. |
Answered by
NicolasCARPi
Nov 1, 2023
Replies: 2 comments 3 replies
|
Are you streaming the files from storage to the library (and possibly to the http response)? |
0 replies
|
I have two separate scenarios where I am building the zip file from files on the server or being pulled from S3. Right now I’m just testing local files as my current implementation pulls them from S3 to local first and then builds the zip, but ideally would like a solution that pulls directly from S3 eventually. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at addFileFromStream().