Thanks for creating this. I think it's exactly what I need but I'm struggling a bit mostly due to my lack of Javascript skills. My goal is to have page caching on for anonymous users in the usual way but have a block updated dynamically. It's a simple breadcrumb link using server variables. No db calls or heavy code involved. I'm using the default Drupal cache handler for now. At this point I don't really need to use AuthCache to cache authenticated users which I think is its primary purpose.

Firstly, can I do that I want with AuthCache?

I have the example module working nicely with an authenticated user but I'm confused as to how I would configure it to produce new data on every request with no (or very minimal) caching. Do I still need the cookie?

As a test I tried setting the block content to time() and max_age in authcache_example.js to null but that doesn't do it. The block doesn't change when I refresh.

I'd appreciate someone pointing me in the right direction.

Thanks

Comments

icosa’s picture

I think I've figured this out. I was just having some trouble getting my head around how it worked and not studying enough of the details.

Thanks

aharown07’s picture

Can you tell us how you worked it out? I'm also trying to do this but have no idea how.

Ah... cancel that. Didn't realize I'd landed on a module page. I'm not using the module but am still seeing blocks cache for anon. users when I don't want them to... and don't have block caching enabled. But this is not related to the module here. Sorry.

simg’s picture

Status: Active » Closed (fixed)