lukasion 0 Posted July 21, 2018 Share Posted July 21, 2018 (edited) 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). 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 July 21, 2018 by lukasion Link to comment Share on other sites More sharing options...
Archew 0 Posted July 22, 2018 Share Posted July 22, 2018 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 More sharing options...
Recommended Posts