Allow forum_forum_load() to force static cache reset

Created on 18 December 2011, over 12 years ago
Updated 4 May 2024, about 2 months ago

This interferes with writing simpletests, for example:

  1. Load the forums using forum_forum_load(), count the number of forums - the result is 1
  2. Create a couple forums programatically using ForumTestCase::createForum()
  3. Load the forums using forum_forum_load(), count the number of forum - the result is 1

Since drupal_static() had an optional $reset parameter, we should allow forum_forum_load() to accept the same parameter and forward it to drupal_static().

Outside of testing, this should offer little to no consequences.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

forum.module

Created by

πŸ‡§πŸ‡·Brazil alexweber

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024