user1338194
user1338194

Reputation: 267

can Cache Objects be nested php?

I have code, which i want to run, this takes a few mins so I have a loading window, when the loading is complete the results are shown and the window is hidden. I want to cache all the results in a separate file and then redirect to the file. I use ob_start, however i don't want to cache my code for loading window. so can i open another ob start before the loading page code and then just delete it after with ob_end_clean, and then still get the rest of the contents at the end of the script?

Upvotes: 0

Views: 75

Answers (1)

arkascha
arkascha

Reputation: 42950

Yes: the documentation about ob buffering in php clearly states that the buffers can be stacked.

Upvotes: 1

Related Questions