• Resolved shawfactor

    (@shawfactor)


    Me again, I am using Multisite.

    Looks like the new tables are created and the transients are being created.

    However it would appear transients are still being populated into the normal options table as well.

    Is this expected behaviour?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Derrick Hammer

    (@pcfreak30)

    This can be possible but is unlikely. I can not say how/why it is happening without details and/or a site backup as at est case.

    I just found myself in this same situation, and I’ve traced the problem to the usage of $wp_filesystem to check if the constants.php file exists or not…

    In my case, $wp_filesystem->is_file() always returns false, because we have $wp_filesystem configured using FTP, the credentials are not kept in the system, and no call to $wp_filesystem->connect() has been made before.

    As we only want to know if the constants are loaded, why don’t you just include the constants.php file, and return if the constants are not defined?

    Something like:

    <?php
    $di_plugin_constants = WP_PLUGIN_DIR . '/dedicated-transients/constants.php';
    
    include_once $di_plugin_constants;
    
    if (! defined( 'DEDICATED_TRANSIENTS_WPMU_DROPIN' ) ||
    	! defined( 'DEDICATED_TRANSIENTS_TABLE' ) ||
    	! defined ('DEDICATED_TRANSIENTS_WPMU_TABLE' ) ) {
    
    	return;
    }

    in the beginning of 0_dedicated_transients.php

    Plugin Author Derrick Hammer

    (@pcfreak30)

    @davefx I have made some changes not yet committed. please email me at [email protected] so you can test them.

    Plugin Author Derrick Hammer

    (@pcfreak30)

    This has been implemented.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Transients still appear in options tables’ is closed to new replies.