Skip to content

WooCoomerce Create Pages: Introduce additional cache purging - Ensure pages are deleted #1310

@PanosSynetos

Description

@PanosSynetos

We've noticed the following

maybe_delete_page_by_slug - See https://github.com/Automattic/wc-calypso-bridge/pull/1304/files#diff-6913cd5881364970fe5a0344296a03005ccab72b20b844d5e040e649ba91531aR717 .

This function checks if the page to be deleted is older than 10 minutes. If it is, it skips it.
I’ve seen several cases where for NEW sites, there is a difference of more than 10 minutes (between the simple site page creation and when the job runs)

  • Atomic site ID 150252764 14b05f90ab0e16d6d56e0d8fd20864fe-logstash
  • (1695874667.1255) ignored page deletion shop diff: 11.95 minutes (older than 10 minutes)

I’ll solve this, by increasing the time to 60 minutes

We still have pages that are not created - Not as many as before, but we still have some.

  • Atomic site ID 150252831, page cart was not created - a24aeb04b83194c169ccd4b51ee00294-logstash
  • Seems like flushing the cache and waiting was not enough
  • Let's try to
    • After each option deletion do wp_cache_delete( $option, 'options' );
    • After each page deletion do clean_post_cache( $page_id );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions