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, the cache should be cleared once. What is your idea when doing this kind of thing ?, When I modify a problem cache, I have to clear it all once. what does that mean? Code ?, You can split the content into blocks for caching. Or use 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service