Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am inserting a record using db_insert in preprocess-page.inc. drupal is adding multiple entries to the database. I assume prime suspect is preprocess-page.inc is calling multiple times for a single page request.
Please suggest, how to avoid it.