Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:13:53+00:00 2026-05-29T21:13:53+00:00

I have a backend data management console written with CakePHP that allows a user

  • 0

I have a backend data management console written with CakePHP that allows a user to manage some hierarchical data. Every time a user makes a change to the data I want to regenerate a data file (JSON in this case) that’s used on the site’s frontend.

The rebuild can take some time and I’d like the backend UI to be a bit more responsive. My idea is to have the JSON rebuild take place after the new page (the “your changes have been saved” page) is rendered to the user. I’ve got some code within the afterFilter() call back in my app_controller.php, but the page doesn’t actually render in the browser until the JSON rebuild completes.

I’ve found code examples for plain-vanilla PHP that does things like send a Connection: Close HTTP header and/or uses output buffer flushing to tell the browser that the server’s done while processing continues, but these techniques don’t (as far as I can tell) work with CakePHP’s structure and its own output buffering.

What I would like is a technique that would allow me to completely render a view for the user and then, once the user has their page loaded, continue executing the JSON rebuild in the background.

I realize there may be situation/setup specific concerns that could affect things, so please let me know if you’ve got questions about my particular application.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:13:56+00:00Added an answer on May 29, 2026 at 9:13 pm

    those cakephp queue plugins are invented for this exact purpose:
    https://github.com/MSeven/cakephp_queue

    they decouple the frontend from the backend services like those file generations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have client application that uses WCF service to insert some data to backend
So I have a PHP backend that pulls some data from SQL, let's just
I have a three tier system, SQL Server backend, hand written data access layer,
I have a backend where people may take some time filling out the form.
I have a flex app that takes data from a back end database then
I have a backend class that has to raise an event with no arguments.
I have from the backend a time on the format 00:12:54 and I display
I am developing a system that will have a database backend. I am intending
I have mysql tables with utf8 encoding. The Data Backend and phpmyadmin are also
I'm writing a middle-tier WCF service that needs to fetch some data from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.