Hızlı arka plan işlemleri ile yönlendirme

0 Cevap php

For a click tracking feature I need to create a hidden page that reads a $_GET or $_POST tag, saves it to database, does some data manipulation and redirects the user to another page. I want the redirect to be as fast as possible, and prefer to do the data manipulation after the redirect so that the user doesn't have to wait for it.

What is the best method to do so? The data manipulation actions are all background actions and have no user interface. I thought of initiating an AJAX call to a php page and redirecting the user without waiting for the AJAX response. The called php file will perform the operations in the background.

Will this work? Are there better alternatives?

Ben (CakePHP ile) php ve jQuery kullanıyorum, ama bu tüm dillerde ilgilidir sanırım.

Şimdiden çok teşekkürler,

Dorian

0 Cevap