• Resolved lancercomic

    (@lancercomic)


    I really don’t want to use site accelerator because it makes it very difficult to update images on my web comic when I notice typos and such. The accelerator turns itself back on every few weeks though, and I think it’s tied to Jetpack updates. Unless I go back in to manually disable it every time, I am always going to have obsolete and unwanted iterations of my images getting dredged back up to the front at random and unannounced times. I just want to be able to turn off site accelerator permanently and not have to constantly babysit it.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there

    This happens with some hosts which provide plugins that automatically enable certain Jetpack modules after an update.

    If you’re using any plugins provided by your host, you could try disabling those. Otherwise, you can add the following code to permanently disable the Jetpack CDN:

    /**
     * Force-disable Jetpack's Image CDN module.
     *
     * @param array $modules Array of active Jetpack modules.
     *
     * @return array $modules Array of active Jetpack modules.
     */
    function jetpackcom_support_disable_jetpack_photon( $modules ) {
    	$found = array_search( 'photon', $modules, true );
    	if ( false !== $found ) {
    		unset( $modules[ $found ] );
    	}
    	return $modules;
    }
    add_filter( 'option_jetpack_active_modules', 'jetpackcom_support_disable_jetpack_photon' );
Viewing 1 replies (of 1 total)

The topic ‘Site / image accelerator keeps re-enabling itself’ is closed to new replies.