Reputation: 2745
I have a PHP script that needs to process some more information in the background after returning the response.
I made it work by following this answer as well as turning off FastCGI Output Buffer:
<IfModule mod_fcgid.c>
FcgidOutputBufferSize 0
</IfModule>
It won't work without turning off FastCGI Output Buffer.
However, I only have one script that needs this. It would be nice if I can keep FastCGI Output Buffer for all other scripts.
Is it possible to just make one PHP script ignore FastCGI Output Buffer?
Upvotes: 1
Views: 338
Reputation: 6788
Maybe you can use nested Apache directives to check the request URI. Like this:
<IfModule mod_fcgid.c>
<If "%{REQUEST_URI} == '/path/to/script.php'">
FcgidOutputBufferSize 0
</If>
</IfModule>
Upvotes: 1