I have stumbled upon this issue when, if page caching is active, a new users will not be able to use their openid right away until the cache is flushed.

It would seem reasonable to flush the page cache when a user is created, or at least the cache for that user.

Comments

anarcat’s picture

Seems like this is fairly simple to do: http://www.seo-expert-blog.com/blog/more-on-clearing-drupals-page-cache

Example, to clear the frontpage:

  $front = variable_get('site_frontpage','node');
  $url = url($front, NULL, NULL, TRUE);
  cache_clear_all($url, 'cache_page');
  $url = preg_replace("%$front$%", '', $url);
  cache_clear_all($url, 'cache_page', FALSE);
anarcat’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.