Saturday, 15 September 2012

php - APC upload progress gets stuck at end of upload -



php - APC upload progress gets stuck at end of upload -

there similar question around on problem different , reply on other question not cause of problem.

i'm tracking upload progress using apc little script (which called every sec using ajax) this:

<?php if(isset($_get['progress_key'])){ $status = apc_fetch('upload_' . $_get['progress_key']); if($status['current'] != ''){ echo '{"current":' . $status['current'] . ', "total":' . $status['total'] . '}'; }else{ echo '{"current":0, "total":100}'; } }else{ echo "{}"; } ?>

everything works fine except apc reports upload progress until upload completed (i've tried files of various sizes, gets stuck @ 95 percent or so, file size seems irrelevant). $status['current'] keeps reporting same value until upload script done processing uploaded file. uploaded file pdf, preview thumbnail generated, takes 10 seconds, during time apc keeps reporting same value.

does have thought might cause this, , more importantly, how prepare this?

update way, have set apc.rfc1867_freq=0

php ajax file-upload progress-bar apc

No comments:

Post a Comment