Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Cache the loaded packages / available package names  #633

Open

Description

@benogle

Along the same lines of #632, the PackageManager should hold a cache of the installed packages so bits of the settings view dont need to call loadInstalled, and shell out to apm. Like loadOutdated, loadInstalled could do the apm bit, load the cache, and emit events, to which other parts of the settings view listen to.

bits of this are already in there, but they arent ideal as I added them as a stopgap.

Coming up with a better system would be nice, and make several parts of the code nicer + faster (e.g., we could load the data when the settings view is activated, then show the packages without delay when people click the Packages tab).

cc @thedaniel

Activity

  1. ProLoser commented on Sep 25, 2015

    @ProLoser

    It would also be nice if during the initial query the previously retrieved packages were shown even if the list is out of date. Caching across application launches.

  2. self-assigned this
    on Dec 11, 2016
  3. removed their assignment
    on Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions