Memcache usage in the news list .. News is classified, and categories are divided by Pages. now I add categories and pages as key values and cache them for display. Now the question is, if I modify the question, I have to clear all the cache once. What is your idea when doing this kind of thing? ------ Solution -------------------- when I modify a problem, the cache must be cleared once. what does it mean? Code? ------ Solution -------- use of Memcache in the news list ..
News is classified, and categories are divided by pages,
What I do now is to add categories and pages as key values and cache them for display.
Now the problem is that if I modify a problem, the cache must be cleared once,
What is your idea when you are doing this kind of things?
------ Solution --------------------
When I modify a problem cache, I have to clear it all once. what does that mean? Code?
------ Solution --------------------
You can split the content into blocks for caching. Or you can use the key to edit the specified cache content.
------ Solution --------------------
The database is permanent. if you do not plan to write the cache and only read the cache, you should first change the database for each modification and then update the cache. this is a background operation, it doesn't matter.