0

I have been thrown into a Drupal 6 environment, helping a client whose site has been running terribly for some time now. Among other issues, they had a ton of traffic and were serving it all locally, so we aim to implement a CDN.

Our CDN of choice is Incapsula, who operate much like Cloudflare if you're familiar with them. At their most basic, they can cache static content. Should be simple.

What I'm finding is that when Incapsula's caching is enabled, the cache never updates. If you go through the public address to the site, you will see old content. It's not just old images and CSS, entire pages will be missing if they are added after the cache is enabled. If you bypass the proxy, you see the correct content. Manually clearing the cache from within the Incapsula control panel does not resolve the problem, I can only do that by actually disabling the cache. Of course, while it is enabled, the site flies!

Complicating this, they have Boost installed and enabled. I am new to Drupal, newer to Boost, and I am attempting to understand how the caching works but have not made much progress. Are there specific settings within Boost that might affect this? It feels like a header is misconfigured. Any thoughts and advice are appreciated!

0

If the CDN caches whole pages you can most likely disable boost.
https://drupal.org/project/advagg - Needed for D6 CSS/JS
https://drupal.org/project/imageinfo_cache - Should help with imagecache generation

  • Excellent, that's a big help. I installed those modules and disabled the relevant sections of Boost. Is removing Boost completely just a matter of removing its directory from modules and removing its section from .htaccess? – clg Apr 19 '14 at 18:20
  • Be sure to uninstall it from drupal and then yes, remove the cache dir & module and its sections from .htaccess – mikeytown2 Apr 19 '14 at 18:25
0

I work at Incapsula.

This does sound like a cache header issue. (perhaps Drupal Boost assigns prolonged "maxage" values?)

One way or another, you can override these settings using our Advance Control options. http://www.incapsula.com/blog/popping-the-hood-on-website-acceleration.html

One of the selectors there allows Incapsula to automatically override existing maxage and no-cache directives, using its own cache header logic.

You can also manually set your own caching settings: for all resources and for specific resource groups (e.g. all resources set to refresh each 5 minutes and all *.jpg files set to refresh once a day)

Moreover, you can also configure refresh rates for specific resources (e.g. all resources are refreshed every 5 min, all images are refreshed once a day and a homepage banner updated once a month)

I'll be happy to provide more case-specific assistance but, to do that, I`ll need to know the domain name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.