SiteGround Optimizer Integration
The integration runs when the SiteGround Optimizer options class (SiteGround_OptimizerOptionsOptions) is available and SG_OPTIMIZER_VERSION is defined. There is no UI toggle in ZiziCache.
What the integration does
- After ZiziCache settings are saved (
zizi_cache_update_config:after), it disables conflicting SiteGround options viaSiteGround_OptimizerOptionsOptions::disable_option(). - On
wp_loadedit re-checks conflicts and disables them again if needed. - On
zizi_cache_purge_everything:beforeit callssg_cachepress_purge_everything()if available. - In wp-admin it shows a notice with the count of disabled options (only when changes were made).
Conflicting SiteGround options disabled by ZiziCache
- Cache: default_enable_cache, default_autoflush_cache, supercacher_permissions, enable_cache, logged_in_cache, autoflush_cache, file_caching
- HTML: optimize_html
- JavaScript: optimize_javascript, optimize_javascript_async, combine_javascript
- CSS: optimize_css, combine_css, preload_combined_css
- Fonts: optimize_web_fonts, combine_google_fonts
- Images: lazyload_images
- Other: disable_emojis, remove_query_strings
What it does not do
- It does not coordinate preload or provide unified cache statistics.
- It does not modify any SiteGround options outside of the list above.
- It does not provide a UI priority switch between plugins.
How to verify
- In SiteGround Optimizer, temporarily enable one of the options listed above.
- Save any setting in ZiziCache (any Save action in the ZiziCache admin UI).
- Confirm the option was turned off in SGO. If changes were made, an admin notice appears.
- For purge testing, run „Clear all“ in ZiziCache or
wp zizi-cache purge-everything. Ifsg_cachepress_purge_everything()exists, SiteGround cache is also cleared.
Disable the integration (optional)
You can disable the integration via the zizi_cache_disabled_integrations filter:
add_filter('zizi_cache_disabled_integrations', function($integrations) {
$integrations[] = ZiziCachePluginsIntegrationsSiteGround::class;
return $integrations;
});