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

Clear DNS Cache #43

Closed
nomadjimbob opened this issue Jul 11, 2022 · 6 comments
Closed

Clear DNS Cache #43

nomadjimbob opened this issue Jul 11, 2022 · 6 comments

Comments

@nomadjimbob
Copy link
Contributor

I regularly need to clear the DNS cache on the Mac by using terminal commands or a program like CleanMyMac. It would be great if this app had an option to do this within the Cleanup section along side the XCode Derived Data option.

These are the typical terminal commands that need to be run to perform this clearing:

  • For macOS High Sierra and later - sudo killall -HUP mDNSResponder
  • For macOS El Capitan - sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
@jacklandrin
Copy link
Owner

@nomadjimbob Thank you for the suggestion. I think a shortcut action may meet your demand. You could share the shortcut to the shortcuts gallery in OnlySwitch. It's easier to publish, everyone can get this feature without a new release.
Learn about how to contribute shortcuts to the gallery:
https://github.com/jacklandrin/OnlySwitch/blob/main/ShortcutsGalleryContributing.md

@jacklandrin
Copy link
Owner

If you couldn't contribute to it, I can share it from me.

@nomadjimbob
Copy link
Contributor Author

nomadjimbob commented Jul 12, 2022

I ended up setting creating a shortcut which works great. I'm happy to add it in through a PR.

Just noticed, 09cb781 moved the location of ShortcutsMarket.json to /OnlySwitch/Resource/ShortcutsMarket/ShortcutsMarket.json. The documentation you linked still has it listed at /OnlySwitch/ShortcutsMarket/ShortcutsMarket.json. If you can let me know which is correct and I can go from there.

@jacklandrin
Copy link
Owner

/OnlySwitch/Resource/ShortcutsMarket/ShortcutsMarket.json is correct. You can fetch my newest code, then pull request.

@jacklandrin
Copy link
Owner

I've merged your pr, but I find a bug of mine. I moved the location of ShortcutsMarket.json, but I didn't modify the URL of the request this JSON. I'll fix it in version 2.3.4.

@jacklandrin
Copy link
Owner

2.3.4 is released.

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