Anonymous | Login | Signup for a new account | 2023-05-31 05:12 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update | ||
0001339 | [In-Portal CMS] Data Management | bug report | always | 2012-07-09 10:45 | 2012-07-25 05:29 | ||
Reporter | alex | View Status | public | Project Name | In-Portal CMS | ||
Assigned To | alex | Developer | |||||
Priority | normal | Resolution | fixed | Fixed in Version | 5.2.0 | ||
Status | closed | Product Version | 5.0.0 | Target Version | 5.2.0 | ||
Time Estimate | No estimate | ||||||
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 |
||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
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 | ||||||
Attached Files |
![]() |
||||||
|
![]() |
|||||||||||||||||||||||||||||||
|
![]() |
|
![]() alex (manager) 2012-07-17 09:51 |
Will test all together later. |
![]() alex (manager) 2012-07-17 09:54 |
Fix committed to 5.2.x branch. Commit Message: Fixes 0001339: Long running scheduled task delays page loading |
![]() alex (manager) 2012-07-25 05:29 |
Since 5.2.0 version was released. |
![]() |
|||
In-Portal CMS: 5.2.x r15457 Timestamp: 2012-07-17 09:54:32 Author: alex [ Details ] [ Diff ] |
Fixes 0001339: Long running scheduled task delays page loading | ||
mod - /in-portal/branches/5.2.x/core/kernel/application.php | [ Diff ] [ File ] | ||
mod - /in-portal/branches/5.2.x/core/kernel/managers/scheduled_task_manager.php | [ Diff ] [ File ] | ||
![]() |
|||
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 | View Revisions |
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 |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |