php - Performance issue (caching) - make calculations from the db faster or store them -


the problem changed, core stays same. here problem:

every time user visits page, server pulls data setting table, process php functions , displays result user on html page way: md5(result_string+users_ip_address).

the setting table changed once hour. result, result_string changed once hour.

unfortunately, takes time (10 seconds) result_string because of complicated calculations.

what options display md5(result_string+ip_address) faster user in 10 seconds?

environment: mysql, php.

step 1: create new table or file , save value of result_string in file/db table.

step 2: code updates settings table, append code logic of updating result_string value in file/db table.

step 3: change code fetch values new file/db table.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -