Download & Extend

new users do not show up if caching is enabled

Project:OpenID Provider
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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);

#2

Status:active» fixed

#3

Status:fixed» closed (fixed)

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