internal/frontend: cache slow symbol searches for a long time

If the request is for a symbol that takes a long time to search, cache
the results for a long time.

Change-Id: I68a901b81c854c30af01b626e00cf4d0de1ee59c
Trust: Jonathan Amsterdam <>
Reviewed-by: Jamal Carvalho <>
1 file changed
tree: 43afec0920df047909b6da079452c7074a2a6b43
  1. cmd/
  2. devtools/
  3. doc/
  4. internal/
  5. migrations/
  6. static/
  7. tests/
  8. third_party/
  9. .dockerignore
  10. .eslintignore
  11. .eslintrc.yaml
  12. .gitignore
  13. .prettierignore
  14. .prettierrc.yaml
  15. .stylelintignore
  16. .stylelintrc.yaml
  21. all.bash
  22. cloudbuild.yaml
  23. go.mod
  24. go.sum
  25. jest.config.js
  26. package-lock.json
  27. package.json
  28. tsconfig.json

Go Reference

A site for discovering Go packages is a website for discovering and evaluating Go packages and modules.

You can check it out at


If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.

For answers to frequently asked questions, see

You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.


We would love your help!

Our canonical Git repository is located at There is a mirror of the repository at

To contribute, please read our contributing guide.


Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.