Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Published post number from api don't match db value #644

Closed
lrxtom2 opened this issue Jun 6, 2022 · 1 comment
Closed

Published post number from api don't match db value #644

lrxtom2 opened this issue Jun 6, 2022 · 1 comment

Comments

@lrxtom2
Copy link

lrxtom2 commented Jun 6, 2022

Describe the bug
Purpose to draft some posts, so after manually change the data from db that update some post 'isPublished' to 0, the isPublished post count number of db query doesn't match it from api(/api/post/list/published) value.

To Reproduce
Steps to reproduce the behavior:

  1. Login to the system
  2. F12 to network
  3. Refresh post list
  4. Manually query database

Expected behavior
Published post number from api should be match db value

Screenshots
image
image
image

Environment (please complete the following information):
ignore

Additional context
ignore

@EdiWang
Copy link
Owner

EdiWang commented Jun 7, 2022

Please restart the website or clear server side cache. Because changes to DB won't refresh cache, count for posts is part of it.

@EdiWang EdiWang closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants