• Currently 3.5/5
  • 1
  • 2
  • 3
  • 4
  • 5
Cache Block

Cache Block is a plugin that can dramatically speed up publishing by caching blocks of built template code. Cache Block is very flexible, enabling you to cache an entire page, a small template snippet, a template module, a sidebar widget, and entire sidebar, etc. Each block can be set to expire after a certain duration -- some blocks you may want to cache for 5 minutes, others for hours, or even days. When used wisely, the result is significantly faster publishing times and faster comment-posting.

5 Comments

This could not be a more insanely useful plugin. Hat's off Mark for helping to address performance in a useful, user controllable, usable and intuitive way.

this plugin is very good tnx

I think there is caching duration mainly advantage and disadvantage both are parts of this plug in but finally its a good plug in if you use it wisely. Thanks

Will CacheBlock work friendly with template Inheritance? Do you have any suggestions?

Yes, CacheBlock works fine with my Template Inheritance plugin. Depending on what your are trying to do, however, you may need to be very careful with your cache keys. For example, if a template is shared across multiple blogs, and it contains CacheBlock with a static cache key like 'blogsidebar', then that block when built by one blog will be used by all blogs, not always what you want. In such case, I suggest using cache keys that have the blogid as a prefix.

Leave a comment

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.