{"id":8707,"date":"2012-09-25T23:03:22","date_gmt":"2012-09-25T17:33:22","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=8707"},"modified":"2022-01-12T19:00:53","modified_gmt":"2022-01-12T13:30:53","slug":"redis-heavyweight-tags-an-awesome-use-case-for-caching-with-redis","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/redis-heavyweight-tags-an-awesome-use-case-for-caching-with-redis\/","title":{"rendered":"Redis: Heavyweight Tags &#8211; an awesome use-case for caching with Redis"},"content":{"rendered":"<p>Redis plugin provides a beautiful way to cache the html tags. Using this plugin we can make big savings on the time taken to render the gsp tags. <\/p>\n<p>[java]<br \/>\n&lt;redis:memoize  key=&quot;someKey&quot; expire=&quot;3600&quot; &gt;<br \/>\n   \/\/Some heavy weight tags rendering<br \/>\n  \/\/ Lots of db \/ network operations.<br \/>\n&lt;\/redis:memoize&gt;<br \/>\n[\/java]<br \/>\nI found this tag extremely helpful in rendering the public facing pages of our site. the pages which refreshed not very frequently and required few seconds to render(if done without caching).<\/p>\n<p>The difference in the time taken to render the page is dependent on our choice of right candidate for Memoizing.<\/p>\n<p><!--more--><br \/>\nHope this helps!!!<br \/>\n<!--more--><br \/>\nBest Regards<br \/>\nMohd Farid<br \/>\nfarid@intelligrape.com<br \/>\n@faridiflex<br \/>\n<!--more--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis plugin provides a beautiful way to cache the html tags. Using this plugin we can make big savings on the time taken to render the gsp tags. [java] &lt;redis:memoize key=&quot;someKey&quot; expire=&quot;3600&quot; &gt; \/\/Some heavy weight tags rendering \/\/ Lots of db \/ network operations. &lt;\/redis:memoize&gt; [\/java] I found this tag extremely helpful in rendering [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[7],"tags":[118,4840,213,477,857,1080],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/8707"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=8707"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/8707\/revisions"}],"predecessor-version":[{"id":54608,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/8707\/revisions\/54608"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=8707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=8707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=8707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}