hello all i am having a website where i have a side pannel which is displaying the same thing on all the pages i mean the data which is fetched by the database dosent change often. like i have a pannel on the left side of my site which is displaying recent birthdays which is going to be change after 1 day only but the problem is that everytime the page is refreshed the same data needs to be fetched from the database again and again which can increase the database load and also page load time
i was wondering if there is anything which can display the side bar once the query is executed and after that the result will be fetched from session/cache or what ever the sollution is
i think it can be done by cache like memcache but i dont know how i also tried to store them into session and cookies but there is error it say can not store objects into session and also i have to use loop to the results obtained by query the query is like
$birthday_query=mysqli_query($connection,"select name,email,id,date from members where dob 'some code here' ");
// this code fetches about 30-40 results and i am using the loop to display the results..