Title: Feature request: add sync-missing command to wp client (implementation provided)
Last modified: April 12, 2019

---

# Feature request: add sync-missing command to wp client (implementation provided)

 *  Resolved [quiron](https://wordpress.org/support/users/quiron/)
 * (@quiron)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/feature-request-add-sync-missing-command-to-wp-client/)
 * **The problem**
    Some generated images can be removed or deleted for multiple
   reasons. When this happens the bulk optimizer can not re-optimize it again as
   long are already registered as optimized and no missing images to be optimized
   are detected.
 * **Proposed solution**
    Implement a method to check if all expected images to 
   be in the file system are really there. If not present then update the DB registry
   to let the bulk optimizer to be able to process it.
 * [https://github.com/keycdn/wp-optimus/pull/7](https://github.com/keycdn/wp-optimus/pull/7)
 * This PR implements a new wp command optimus sync-missing that performs this operation.
   The feature can be exposed also to the management pages but is not done in this
   PR.
    -  This topic was modified 7 years, 1 month ago by [quiron](https://wordpress.org/support/users/quiron/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeature-request-add-sync-missing-command-to-wp-client%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [sun](https://wordpress.org/support/users/tha_sun/)
 * (@tha_sun)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/feature-request-add-sync-missing-command-to-wp-client/#post-11420960)
 * 👍
 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [7 years ago](https://wordpress.org/support/topic/feature-request-add-sync-missing-command-to-wp-client/#post-11507411)
 * Thanks! Let’s follow up in the PR: [https://github.com/keycdn/wp-optimus/pull/7](https://github.com/keycdn/wp-optimus/pull/7)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature request: add sync-missing command to wp client (implementation
provided)’ is closed to new replies.

 * ![](https://ps.w.org/optimus/assets/icon-256x256.png?rev=976959)
 * [Optimus - WordPress Image Optimizer](https://wordpress.org/plugins/optimus/)
 * [Support Threads](https://wordpress.org/support/plugin/optimus/)
 * [Active Topics](https://wordpress.org/support/plugin/optimus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optimus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optimus/reviews/)

## Tags

 * [missing images](https://wordpress.org/support/topic-tag/missing-images/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)

 * 2 replies
 * 3 participants
 * Last reply from: [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/feature-request-add-sync-missing-command-to-wp-client/#post-11507411)
 * Status: resolved