In-Portal Issue Tracker - In-Portal CMS
|
|||||||||||||||||||||||||||||||||||
Viewing Issue Advanced Details | |||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: | ||||||||||||||||||||||||||||||
1339 | [In-Portal CMS] Data Management | bug report | always | 2012-07-09 10:45 | 2012-07-25 05:29 | ||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Reporter: | alex | Platform: | |||||||||||||||||||||||||||||||||
Assigned To: | alex | OS: | |||||||||||||||||||||||||||||||||
Priority: | normal | OS Version: | |||||||||||||||||||||||||||||||||
Status: | closed | Product Version: | 5.0.0 | ||||||||||||||||||||||||||||||||
Product Build: | Resolution: | fixed | |||||||||||||||||||||||||||||||||
ETA: | none | Fixed in Version: | 5.2.0 | ||||||||||||||||||||||||||||||||
Reference: | https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion | ||||||||||||||||||||||||||||||||||
Change Log Message: | Fixing page load delay because of long running scheduled task | ||||||||||||||||||||||||||||||||||
Estimate Points: | 1 | ||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Summary: | 0001339: Long running scheduled task delays page loading | ||||||||||||||||||||||||||||||||||
Description: |
Administrator can set scheduled tasks to be executed: * in cron; * after page load. In later case long running scheduled task delays actual page content from being sent to user, who requested a page. To solve this we need to place following code after page content has been sent to user (but before scheduled task execution is started): ignore_user_abort(true); while ( ob_get_level() ) { ob_end_clean(); } header('Connection: close'); // header('Content-Length: 0'); // only uncomment when such header isn't sent already flush(); This code will do following: 1. web browser "Loading ..." indicator should show 100% 2. connection to webserver will be terminated 3. reset of the script will continue to execute on the server |
||||||||||||||||||||||||||||||||||
Steps To Reproduce: | |||||||||||||||||||||||||||||||||||
Additional Information: | |||||||||||||||||||||||||||||||||||
Relationships |
| ||||||||||||||||||||||||||||||||||
Attached Files: |
![]() http://tracker.in-portal.org/file_download.php?file_id=1757&type=bug |
||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Issue History | |||||||||||||||||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||||||||||||||||
2012-08-20 08:54 | alex | Relationship added | parent of 0001380 | ||||||||||||||||||||||||||||||||
2012-07-25 05:29 | alex | Note Added: 0004832 | |||||||||||||||||||||||||||||||||
2012-07-25 05:29 | alex | Status | resolved => closed | ||||||||||||||||||||||||||||||||
2012-07-17 09:59 | alex | Relationship added | parent of 0001356 | ||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Note Added: 0004795 | |||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Status | reviewed and tested => resolved | ||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Fixed in Version | => 5.2.0 | ||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Resolution | open => fixed | ||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Assigned To | !COMMUNITY => alex | ||||||||||||||||||||||||||||||||
2012-07-17 09:54 | alex | Changeset attached | 5.2.x r15457 | ||||||||||||||||||||||||||||||||
2012-07-17 09:51 | alex | Note Added: 0004794 | |||||||||||||||||||||||||||||||||
2012-07-17 09:51 | alex | Status | needs testing => reviewed and tested | ||||||||||||||||||||||||||||||||
2012-07-17 09:51 | alex | Assigned To | => !COMMUNITY | ||||||||||||||||||||||||||||||||
2012-07-17 09:51 | alex | Developer | => alex | ||||||||||||||||||||||||||||||||
2012-07-17 09:51 | alex | Status | active => needs testing | ||||||||||||||||||||||||||||||||
2012-07-17 09:50 | alex | File Added: cron_close_connection_early.patch | |||||||||||||||||||||||||||||||||
2012-07-09 11:10 | alex | Relationship added | related to 0001341 | ||||||||||||||||||||||||||||||||
2012-07-09 11:03 | alex | Relationship added | related to 0001340 | ||||||||||||||||||||||||||||||||
2012-07-09 10:51 | alex | Relationship added | related to 0000981 | ||||||||||||||||||||||||||||||||
2012-07-09 10:50 | alex | Relationship added | related to 0001191 | ||||||||||||||||||||||||||||||||
2012-07-09 10:48 | alex | Description Updated | bug_revision_view_page.php?rev_id=1023#r1023 | ||||||||||||||||||||||||||||||||
2012-07-09 10:45 | alex | New Issue | |||||||||||||||||||||||||||||||||
2012-07-09 10:45 | alex | Reference | => https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion | ||||||||||||||||||||||||||||||||
2012-07-09 10:45 | alex | Change Log Message | => Fixing page load delay because of long running scheduled task | ||||||||||||||||||||||||||||||||
2012-07-09 10:45 | alex | Estimate Points | => 1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|