Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Fix to make Authcache ESI work with Context module

Neerav Mehta

Founder & CEO

Recently I worked on caching using Authcache ESI and Varnish.

I configured the Varnish VCL based on the recommendations provided by Authcache ESI module. But all the blocks for which I enabled Authcache ESI wouldn't show up on the page.

On further debugging, I discovered that the culprit is the interaction between Authcache ESI and Context modules. Context module displays blocks on a page even if they are not enabled to be shown on any region in any theme. But Authcache ESI thinks that these blocks are disabled and so does not cache them. It does not take into account the fact that Context module is displaying them.

So what's the fix for this? Create a non-public page. Remove it from the sitemap and disallow indexing via robot.txt. Now configure all the blocks that you want to be cached using Authcache ESI to show up on any region of this page. Now Authcache ESI will know that these blocks are enabled and voila! You'll get your blocks back on all the other pages as well!

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.