PHP store some data in mySQL for x hours (limited time) -


how possible store data in database limited time (like example 1 hour)?

a user searches thing, logic executed server-side , search result loaded. result loaded, want store in mysql , keep x hours. after x hours data should deleted database.

how possible in laravel or in php (it not matter me. mentioned laravel may have libraries this)? writing logic in sql or it's php task?

how this? suggestions/links/solutions?

thank much!

is writing logic in sql or it's php task?

doing php hassle because need send requests check if record expired , send delete. can achieved using events in mysql. i came across blog post might helpful.

also dont forget check mysql documentation page


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -