@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-wayback-machine/>
  a sioc:Post ;
  dc:title "How it works" ;
  dcterms:identifier 150165 ;
  dc:modified "2026-10-13T15:41:25Z"^^xsd:dateTime ;
  dc:created "2026-10-13T15:41:25Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-wayback-machine/how-it-works/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-wayback-machine/\">LH Wayback Machine</a></li></ul><p class=\"wp-block-paragraph\">Each site keeps its own queue. Nothing is stored outside post and term meta, and no tables are added.</p><h2 class=\"wp-block-heading\">Lifecycle of an item</h2><ol class=\"wp-block-list\"><li><strong>Queued.</strong> A published post or public term that has never been sent, or has changed since it was last sent.</li><li><strong>Sent.</strong> Once the item has been unchanged for a minute, is not open in the block editor, and was not sent in the last 15 minutes, a Save Page Now request is fired without waiting for a reply.</li><li><strong>Checked.</strong> An hour later the Wayback Machine CDX index is queried for a successful capture newer than the send. Checks repeat hourly.</li><li><strong>Archived</strong> when a capture is found; the column links straight to it. After two hourly misses the item is resubmitted, this time waiting up to 30 seconds for a reply. After two resubmits without a capture it is marked <strong>Failed</strong> (typically pages behind a login, or ones the archive refuses).</li></ol><p class=\"wp-block-paragraph\">Editing an item at any stage puts it back to Queued and starts the cycle again. Its last known snapshot stays linked until a newer one is confirmed.</p><h2 class=\"wp-block-heading\">Stored data</h2><ul class=\"wp-block-list\"><li><code>_lh_wayback_machine-timestamp</code>: when the item was last sent (UTC).</li><li><code>_lh_wayback_machine-snapshot</code>: the latest confirmed capture, as a 14-digit Wayback timestamp.</li><li><code>_lh_wayback_machine-checked</code>, <code>-misses</code>, <code>-attempts</code>: verification state.</li><li><code>_lh_wayback_machine-dirty</code>: terms only, when the term was last edited (terms have no modified date).</li></ul><p class=\"wp-block-paragraph\">Items sent before 2.0.0 are treated as legacy: they get one CDX lookup to record their latest snapshot and are never resubmitted unless edited again.</p><h2 class=\"wp-block-heading\">Background jobs</h2><p class=\"wp-block-paragraph\">Jobs run through Action Scheduler when it is loaded and WP-Cron otherwise. <code>lh_wayback_machine_single</code> processes the queue and reschedules itself for the next item that falls due. <code>lh_wayback_machine_wakeup</code> runs daily as a backstop. A per-site lock stops two passes from running at once. Both jobs are removed on deactivation.</p><h2 class=\"wp-block-heading\">Filters</h2><ul class=\"wp-block-list\"><li><code>lh_wayback_machine_init_plugin</code>: return false to disable the plugin without deactivating it.</li><li><code>lh_wayback_machine_get_applicable_post_types</code>, <code>_get_applicable_post_statuses</code>, <code>_get_applicable_taxonomies</code>: what gets archived.</li><li><code>lh_wayback_machine_return_settle_delay</code> (60s), <code>_return_reping_gap</code> (900s), <code>_return_check_interval</code> (3600s), <code>_return_max_misses</code> (2), <code>_return_max_attempts</code> (2), <code>_return_batch_size</code> (5): timing and limits.</li><li><code>lh_wayback_machine_use_action_scheduler</code>, <code>_return_group</code>: queue backend.</li></ul>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Wayback MachineEach site keeps its own queue. Nothing is stored outside post and term meta, and no tables are added.Lifecycle of an itemQueued. A published post or public term that has never been sent, or has changed since it was last sent.Sent. Once the item has been unchanged for a minute, is not open in the block editor, and was not sent in the last 15 minutes, a Save Page Now request is fired without waiting for a reply.Checked. An hour later the Wayback Machine CDX index is queried for a successful capture newer than the send. Checks repeat hourly.Archived when a capture is found; the column links straight to it. After two hourly misses the item is resubmitted, this time waiting up to 30 seconds for a reply. After two resubmits without a capture it is marked Failed (typically pages behind a login, or ones the archive refuses).Editing an item at any stage puts it back to Queued and starts the cycle again. Its last known snapshot stays linked until a newer one is confirmed.Stored data_lh_wayback_machine-timestamp: when the item was last sent (UTC)._lh_wayback_machine-snapshot: the latest confirmed capture, as a 14-digit Wayback timestamp._lh_wayback_machine-checked, -misses, -attempts: verification state._lh_wayback_machine-dirty: terms only, when the term was last edited (terms have no modified date).Items sent before 2.0.0 are treated as legacy: they get one CDX lookup to record their latest snapshot and are never resubmitted unless edited again.Background jobsJobs run through Action Scheduler when it is loaded and WP-Cron otherwise. lh_wayback_machine_single processes the queue and reschedules itself for the next item that falls due. lh_wayback_machine_wakeup runs daily as a backstop. A per-site lock stops two passes from running at once. Both jobs are removed on deactivation.Filterslh_wayback_machine_init_plugin: return false to disable the plugin without deactivating it.lh_wayback_machine_get_applicable_post_types, _get_applicable_post_statuses, _get_applicable_taxonomies: what gets archived.lh_wayback_machine_return_settle_delay (60s), _return_reping_gap (900s), _return_check_interval (3600s), _return_max_misses (2), _return_max_attempts (2), _return_batch_size (5): timing and limits.lh_wayback_machine_use_action_scheduler, _return_group: queue backend." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
