I've been trying to figure out why the pager element for views won't show up for anon users in Drupal 7. The following are the things I've tried to get them to show, cache clear, mess with the access param in the actual view, create a function that calls
drupal_static_reset('user_access');
drupal_static_reset('user_role_permissions');
Has anyone been able to solve this? I've searched Google for over an hour for a fix/explanation.
drupal_static_reset()
calls just force Drupal to re-read the database tables, or invoke the hooks implemented by modules, to restore static values. They don't stop Drupal from applying permissions.