Jump to content

Cached data problem


lukasion

Recommended Posts

I am currently working on enhancing the functionality of statuses in IPS. I have a problem with the data being cached inside the variables of IPS. 
Here's what it looks like (don't mind language).

image.png.a029d950d002de0135c3a4e466577881.png

The number 4 is the cached count of replies in status ( outputted by {$status->replies} )
The number 6 is the real count(*) taken out from MySQL database by simple SELECT query. 

The question is: how can I refresh the cached count to avoid making stupid queries that will result in code redundancy?
Thanks in advance.

Edited by lukasion
Link to comment
Share on other sites

Are u make something with database like deleting records? 

 

What cache are u using? Redis/Memcached? Redis can save current records to file (restart service not delete cache).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...