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

Add local cache for WordPress core download #114

Open
mrrobot47 opened this issue Nov 29, 2018 · 0 comments
Open

Add local cache for WordPress core download #114

mrrobot47 opened this issue Nov 29, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@mrrobot47
Copy link
Member

mrrobot47 commented Nov 29, 2018

Cache wp core download files after the first run. To speed up the process of installation and reduce unnecessary downloads.

When cache is empty: (These should be skipped if user has passed (--version flag while installation)):

  1. For first install run wp core download.
  2. Cache the downloaded WordPress file in EasyEngine cache directory (EE_CACHE_DIR).

On next install:

  1. Copy the cached files to htdocs.
  2. Run wp core verify-checksum --version=$(wp core version) (Need better way to verify integrity of cache files. wp core version can be maniuplated if the files are wrong). On failure purge cache and proceed with cache empty scenario.
  3. Once checksum is verified. Run wp core update to check for update and update to latest version of any.
  4. If WordPress gets updated in the above, cache the updated files.
@mrrobot47 mrrobot47 added the enhancement New feature or request label Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant