Php Properties - cache (c)
Start thinking a bit confused, not because of any other reason is because the front too chaotic. Write.
Cache biggest problem is how to control period.
1 practice: Active update. When a new data entry or data update, delete the corresponding cache. This advantage is that the data to date. Defects is: cache determination more difficult, especially List; larger than the data update, a large number of data updates, will create a heavy burden.
Practice 2: passive updates, and the survival time of cache settings. One is done Message Queue, a process of constant scanning of the queue to determine the cache should be deleted, and delete it. Another is a call to the time of data cache, cache determine generated to decide whether or not to update data cache.
Tags: PHP








0 Comments to “Php Properties - cache (c)”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.