• ramon fincken

    (@ramon-fincken)


    I have a problem, I store data as transient for 7 days.

    When running a file in the root (where index.php is) I can do:

    // Some loop here for each transient I need:
    var_dump(get_transient($transient_key));

    However .. if I do the exact same thing in an admin plugin page it returns falses !

    How can I fix this?
    Memcached is turned on and stores, pages/objects/database. Default settings for lifetime.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ramon fincken

    (@ramon-fincken)

    Fred. asked me if this still was the case when W3TC was turned off. it is! So it appears that this is not a W3TC problem.

    This is the code, works fine on my warm_cache.php file in the root, but not in my admin plugin page.

    $statdata = get_option('plugin_warm_cache_statdata');
    $keep_time = 60*60*24*7; // 7 days
    foreach($statdata as $key => $value)
    {
    	if($key >= time()-$keep_time)
    	{
    		$newstatdata[$key] = $value;
    
    echo "<br><br>$value<br>";
    var_dump(get_transient($value));
    	}
    }

    Expected result

    plugin_warm_cache1290259187
    array(5) { ["url"]=> string(43) "https://www.mijnpress.nl/
    * snip
    ["pages_count"]=> int(21) ["time"]=> float(15.3015730381) }

    Result in admin page:

    plugin_warm_cache1290259187
    bool(false)

    Thread Starter ramon fincken

    (@ramon-fincken)

    I’ve disabled W3TC, renamed the dropins and dropins from other cache plugins and now the problem is gone.

    Enabling step by step to find out what caused this.

    Thread Starter ramon fincken

    (@ramon-fincken)

    Problem is in the object cache of W3TC

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    So when object caching is disabled all is ok?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] Strange transient problem’ is closed to new replies.