Will the techniques used in the example module for drupal 6 work with drupal 7 also? For example are there any known issues I can avoid, or general pitfalls I should be aware of.

For the moment I just need a simple "User block" that displays the user's email address and a link to their account page. But eventually I might want to make more complex items.

Comments

Oops, somehow the example modules did not get migrated across from the 6.x version :/

Now fixed in the latest dev version.

In principle they should work but I haven't tested them having done a very quick visual migration from D6 to D7 format (eg hook_block for example)

Known Issues:

1. A bizarre issue I recently noticed and currently have not yet investigated is that the ajax request seems to fail for no good reason on some pages of my site.
2. I don't really use Authcache D7 that heavily myself (and never used the D6 version). This means I'm relying quite heavily on users to test and find bugs (and even better, fix them!).
3. Authcache is a complex module and certainly not a magic bullet - though it is very effective. The original author has "gone quiet" and I don't have *that* much free time to respond to the myriad of possible "how do I do 'x'" type questions. I'm doing what I can but any "community assistance" or "sponsorship" would be very much appreciated.
4. You'll presumably be the first person to create an Authcache D7 sub-module - I'll help you if I can but you'll quickly know more about it than I currently do. best of luck :)

Thanks simg!

I'll take a look later this week. As I mentioned above, my specific need is fairly simply (I just need it to print the email instead of username), so hopefully I'll be able to get it working.

fixed the failing ajax request issue mentioned above. it will help you to get the latest dev version.

One quick question, when using a custom module should I check the "Load block with Ajax on cached Authcache pages" box on the block page?

Because in all my testing thus far the block disappears when that box is checked, and when not checked the block is not dynamic.

Just want to make sure I'm using the proper approach before troubleshooting further.

EDIT: I am using the dev version from 9/20/12 by the way.

Short answer, Yes. That works fine for me.

Sounds like maybe you have some javascript error occurring that prevents the ajax blocks being loaded ?

I suggest checking your javascript console for errors ?

Thanks for the quick reply. I'm not seeing any errors in the firebug console (or the drupal log). It seems like no matter what block I use, if I check the Ajax box it disappears.

But really, I need to setup and test this in a sandbox environment. I've been testing on my local copy of a live site so I can't be sure its not a conflict from some other obscure module.

yes, a sandbox environment is worth doing.

also, enable authcache debugging, and check what blocks are being returned by /ajax/authcache.php

Status:Active» Closed (fixed)

Status:Closed (fixed)» Needs work

I have cloned the module. But I cannot still find the D7 version in the git repo. I can find it when downloaded manually.
see
http://drupalcode.org/project/authcache.git/blob/refs/heads/7.x-1.x:/mod...
And it does not exist in
http://drupalcode.org/project/authcache.git/tree/refs/heads/7.x-1.x-dev

Maybe you could provide some documentation. I am working on proper D7 authcache_example version (currently it does not work).

Also, it seems that the most updated branch is 7.x-1.x NOT 7.x-1.x-dev.

In any case I added a new bug report specifically for the issues of the authcache_example module with a patch included in comments. Please check it out and review if you can. http://drupal.org/node/1875168

>Maybe you could provide some documentation. I am working on proper D7 authcache_example version (currently it does not work).
I've never actually built an authcache sub module. Maybe you would be able to contribute some documentation having gone through the learning process :) ?

>Also, it seems that the most updated branch is 7.x-1.x NOT 7.x-1.x-dev.
No, this is my mistake the 7.x-1.x branch IS the dev branch)

oh and the issue in #4 is now fixed in the latest release.

Status:Needs work» Closed (fixed)