Retaining value for all pages of a thread?

R

Robert9

Guest
Member
Let's assume I want to push the count of a user's posts in a thread into the thread's template. Then, I would need to query something like

"SELECT COUNT FROM post WHERE thread_id = AND user_id = ".

But what about pages 2, 3, 4, ...?

Do I want an extra query for each page? Does it make sense to cache this value? If so, where and how? If not, why not?
Retaining value for all pages of a thread?

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    B @ BeingImpossible: Promote your discord server Fast & Free ⚡ Check out: https://dscspot.lol/ get free members
    Top