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

Call correct cache clearing API when moving topic #120

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

johnhenley
Copy link
Collaborator

Call correct cache clearing API when moving topic

Changes made

  • Call correct cache clearing API when moving topic (previous call was to clear cache for forum settings/templates not content)

PR Template Checklist

  • Fixes Bug
  • Feature solution
  • Other

Please mark which issue is solved

Close #65

@Timo-Breumelhof
Copy link
Contributor

Great, thanks again for spending time on this :-)

@johnhenley
Copy link
Collaborator Author

johnhenley commented Feb 10, 2022 via email

@Timo-Breumelhof
Copy link
Contributor

@johnhenley IMO refactoring is always good if it's not too much work.
I'm doing the same when I pass by any "old fashioned" HTML / CSS
Do you agree @WillStrohl ?

@WillStrohl
Copy link
Member

I agree with the advice given by @Timo-Breumelhof. In general, refactoring is good, but we should do it carefully and in planned phases. We shouldn't do it as part of a different update, in my opinion.

For example, an issue and then PR that simply updates interpolation strings would be great. Then, a separate issue and PR can be used for the next optimization.

If something minor is found within a specific update that's related, that would be different and fine when included. For example, creating an optimization within the current class file that has other updates can be fine - but it depends on the risk of the specific update in general. This would be determined on a case-by-case basis. It's not always clear where the line is. We just need to continue to chat about it like we are now, whenever we all want to figure something like this out.

@WillStrohl
Copy link
Member

In this update, specifically... Where did you come up with the cache token?

@johnhenley
Copy link
Collaborator Author

A lot of debugging and working thru the code :)
image
this is the code in ForumController.cs that sets the cache for the "forum view"
when clearing the caches, you can specify just the prefix, e.g. AF-FV-{portalId}-{moduleId} to clear the forum view cache for all users for the instance of AF on portalId/moduleId.

Does that answer your question?

@johnhenley johnhenley closed this Mar 3, 2022
@johnhenley johnhenley deleted the bug/65 branch March 3, 2022 22:20
@WillStrohl
Copy link
Member

Did you intend to close and delete this PR?

@johnhenley
Copy link
Collaborator Author

@WillStrohl Oops. Another GitHub rookie mistake I guess. I renamed my local branches (I changed from bug/# and task/# to issue/# so they line up better in visual studio ...) and I guess that screwed up the linkage to remote.
Let me see if I can unscramble this and the other ones

@johnhenley johnhenley restored the bug/65 branch March 10, 2022 11:52
@johnhenley johnhenley reopened this Mar 10, 2022
@WillStrohl
Copy link
Member

We'll eventually want to turn a format value like that into a constant, but this is fine for now. Thanks for your contribution!

@WillStrohl WillStrohl added this to the 06.07.00 milestone Mar 10, 2022
@WillStrohl WillStrohl merged commit b640f0c into DNNCommunity:dev Mar 10, 2022
@johnhenley
Copy link
Collaborator Author

We'll eventually want to turn a format value like that into a constant
@WillStrohl yeah. there seem to be a lot of those...

@WillStrohl
Copy link
Member

Indeed. Too many. 😁

@WillStrohl WillStrohl modified the milestones: 06.07.00, 07.00.00 Aug 9, 2022
@johnhenley johnhenley deleted the bug/65 branch December 28, 2022 16:43
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

Successfully merging this pull request may close these issues.

Forum overview Thread count not updating after moving Thread to other forum
3 participants