Skip to content

[2.1|3.0] Pagination links not updated by quick moderation #7663

@sbulen

Description

@sbulen

Description

If you have caching on, and quick moderation on, and delete a page of topics, the pagination at the top of the list is not updated. It will include links to non-existent pages of topics.

Initially I could not reproduce this testing on a wamp environment... But I could reproduce it on a linux environment.

Steps to reproduce

  1. Test on linux
  2. Turn on caching
  3. Turn on quick moderation
  4. Add at least a page of topics
  5. Delete the first page of topics

You will see no changes in the pagination links, they will refer to pages of topics that aren't there anymore.

This self corrects over time, as the cache expires.

It should probably reset the appropriate cache when topics are deleted.

This is a "soft" error - you will never get an error message, even it you click on one of the non-existent links. SMF will just give you the closest page it can find.

Environment (complete as necessary)

  • Version/Git revision: v2.1.3
  • Database Type: mysql
  • Database Version: 8.0
  • PHP Version: 8.1

Additional information/references

Reported in the forum:
https://www.simplemachines.org/community/index.php?topic=582697.0

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions