SMART SOLUTIONS FRAMEWORK / PERFORMANCE
SSF Speed Cache ' .
esc_html(SSFSPEED_VERSION) .
'
Faster public pages. Clear decisions. Changes you can reverse.
";
$notice = get_transient("ssfspeed_notice_" . get_current_user_id());
if ($notice) {
echo '
' .
esc_html($notice) .
"
";
delete_transient("ssfspeed_notice_" . get_current_user_id());
}
$s = Core::settings();
$conflict = Core::conflict();
if ($conflict) {
echo '
Page caching is paused while this provider/configuration is present: ' .
esc_html($conflict) .
". Keep one page-cache owner.
";
}
if ($tab === "overview") {
$c = Core::config();
echo '
PAGE CACHE
' .
($s["enabled"] && Core::ready() && !$conflict
? "Enabled"
: "Not enabled") .
"
Cookie-free public GET requests only. The first eligible visit builds a cache entry.
";
self::form("install", "overview");
self::button("Enable early page cache");
echo 'PUBLIC PATH INVENTORY
' .
count($c["paths"] ?? []) .
' paths
Published posts and pages, indexed in batches. Product pages require explicit opt-in.
FRESHNESS
' .
(int) $s["ttl"] .
" seconds
Changes to content, theme, widgets or tracked shop settings invalidate cached pages.
";
self::form("purge", "overview");
self::button("Clear all cache");
echo 'Start with a real public-page check
- Back up and test on staging. Confirm your hosting does not already own page caching.
- Set
define(\'WP_CACHE\', true); in wp-config.php if your host has not set it. - Enable the cache, then visit a supported page twice in a browser without site cookies.
- Look for
X-SSF-Speed-Cache: HIT on the second response. Interactive/token-bearing pages are deliberately bypassed.
No database credentials, server configuration or existing foreign drop-in files are overwritten. HTTPS reverse proxies must expose the correct scheme to WordPress.
';
} elseif ($tab === "settings") {
echo "
Click-to-load YouTube
Place [ssf_speed_video id="VIDEO_ID" title="Watch the demonstration"] in content. The local preview makes no YouTube request until clicked. The visitor then loads an external YouTube player.
';
} elseif ($tab === "diagnostics") {
echo "
Always bypassed
Cookies, authorization, query strings, non-GET methods, protected paths, private/draft/password pages, carts, checkout and accounts. Responses containing forms, tokens, private cache headers or unsupported variations are not stored.
Custom personalization must be excluded and tested by the site owner. This tool cannot certify every third-party extension.
";
} elseif ($tab === "recovery") {
echo '
Restore settings
Restore the previous Free configuration and invalidate the cache.
';
self::form("rollback", $tab);
self::button("Restore previous settings");
echo "Disable caching
Retain configuration while stopping cache reads and writes.
";
self::form("disable", $tab);
self::button("Disable cache");
echo "Export settings
Download a configuration copy for your records.
";
self::form("export", $tab);
self::button("Export JSON");
echo "Recent changes
| UTC time | Action |
";
foreach (
array_reverse((array) get_option("ssfspeed_history", []))
as $row
) {
echo "| " .
esc_html($row["time"]) .
" | " .
esc_html($row["action"]) .
" |
";
}
echo "
";
} else {
do_action("ssfspeed_render_tab", $tab);
}
echo "
";
}
}