2012-09-23, 07:08 PM
This user has been denied support.
(2012-09-23, 05:43 PM)Yaldaram Wrote: You're making a very big query Unadkat. You do not have to useYes, I think I gave it a try but just pid didn't worked, so I added uid, I will retry it and give it a try tomorrow. Yes, that unfortunately runs around 9-10 queries on showthread. I also tried caching it, but I'm not too good with cache and unfortunately that didn't worked, if you've any suggestion for cache, that would be appreciated.users
andposts
tables since you can directly fetch the warned post from its pid on postbit fromwarnings
table.
Quote:Anyway, querying on each post is too weighty. I would suggest to create a column in posts
table, and then update this column when warning issues and on warning expires. You can then simply use $post['column_name'] and check if its true then shows the icon and if its false removes the icon.
This seems a great idea, I think I shall also try to do this, thanks.