I'm using apc_fetch to show a progress bar when I'm uploading a big file (a video).
The apc_fetch works ok with file up to 180mb. But with bigger file, apc_fetch returns false after 190Mb.
Basically if I upload a big file (250mb) it shows data until 'current' is < 190mb. When it comes to 190mb it returns false. no data.
My apc conf in php.ini
extension=apc.so
apc.rfc1867 = on
apc.max_file_size = 1024M
upload_max_filesize = 1024M
post_max_size = 1025M
apc.shm_size = 512M
apc.rfc1867_freq= 0
An update about it: Still making some tests and I found that the apc_fetch starts return empty afer 1 hour (60min). I set those up, but still getting the same.
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 0
I think that the problem is something with the time.
You need to set apc.rfc1867_ttl to a larger value. It determines how long the upload tracking values live in the apc cache.
Default value is 3600 seconds, after this time the upload is no longer tracked. That's why you see it returning nothing after an hour. Set it to a value somewhat higher than the longest time you expect an upload to take.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With