PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 1.8.0
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v1.8.0
1.8.0 1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 All 27 releases
flywp / includes / StaticSite / Engine / Incremental / ChangeSet.php

ChangeSet.php in FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel 1.8.0, at includes/StaticSite/Engine/Incremental/ChangeSet.php

51 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FlyWP\StaticSite\Engine\Incremental;
4
5 /**
6 * The work of an incremental build.
7 *
8 * - full_reason = "global_change" or "large_list": the engine must run a full build.
9 * - full_reason = null and urls and deleted_urls are empty: nothing changed.
10 *
11 * @since 1.8.0
12 */
13 class ChangeSet {
14
15 /**
16 * Reason for a full build: "global_change", "large_list", "no_changes" or null.
17 *
18 * @var string|null
19 */
20 public $full_reason = null;
21
22 /**
23 * Absolute URLs to rebuild. All pages of each list in $lists are included.
24 *
25 * @var string[]
26 */
27 public $urls = [];
28
29 /**
30 * Absolute URLs that are gone.
31 *
32 * @var string[]
33 */
34 public $deleted_urls = [];
35
36 /**
37 * Each list page (home or posts page, post type archive, term, author, date) with its current page count.
38 * The engine deletes the files of pages after the last page.
39 *
40 * @var array<int, array{url:string, pages:int}>
41 */
42 public $lists = [];
43
44 /**
45 * Highest change row ID in this set. The engine clears rows up to this ID after the build.
46 *
47 * @var int
48 */
49 public $max_change_id = 0;
50 }
51