• Resolved Ajay Ghaghretiya

    (@ajayghaghretiya1)


    Hi Team,

    I believe it’s the session_start() that is slowing things down. Or generally, the overall use of sessions. As each call to the session_start function locks the PHP session and will unlock it only when the request is done.

    So subsequent requests can end up having to wait, which I believe is why we’re seeing the delays we see in this constructor code.

    I’m not seeing this plugin close/stop the session when it’s done with it. And if it’s opening up sessions on requests often, that is definitely problematic.

    So can you let us know is there any way to remove the session_start from the below file and plugin should be working fine without any performance issue?

    plugins/myworks-woo-sync-for-quickbooks-online/includes/class-myworks-wc-qbo-sync-qbo-lib.php Line: 45

    Please do check with the technical team and let us know. ( We use the premium plugin ).

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author MyWorks

    (@myworksdesign)

    @ajayghaghretiya1 Thanks for reaching out! Are you able to open a ticket with us at https://support.myworks.software for our team to help further review this with you? Although we do indeed use sessions to support the sync activities we run, this shouldn’t degrade performance on your site – and this can be optimized with wp-cron to run in the background.

Viewing 1 replies (of 1 total)
  • The topic ‘session_start function slowing down the site’ is closed to new replies.