When I installed this plugin, my site can work only 1 blog.
Others are displayed 404 page.
wp_cache_get / set works as they should but I get a message in admin saying load_plugin_textdomain was called using a deprecated argument in functions.php on line 2724(I’m running a swedish version so this was freely translated).
]]>I am getting this error on my pages when view them for a 2nd time:
Warning: unserialize() [function.unserialize]: Node no longer exists in /var/www/html/tc/tcgscans.com/wp-content/plugins/wp-file-cache/lib/class.FileCache.php on line 193
And this is the function that is causing the issue:
// Get Amazon Price
function get_amazon_price($asin) {
$transName = "amzn-transient-$asin"; // Name of value in database.
$cacheTime = 24; // Time in hours between updates.
// Do we already have saved data? If not, lets get it.
if ( false === ( $trans = get_transient($transName) ) ) :
// The Function to get Price
$public_key = 'AKIAJ7UYHSJ4L3Q2KINQ';
$private_key = 'nSPy3581vu0ZyV6M5mZ+Hw+AboU43SCY2AED9+Lm';
$pxml = aws_signed_request( 'com', array( 'Operation' => 'ItemLookup', 'ItemId' => $asin, 'ResponseGroup' => 'OfferSummary', 'Availability' => 'Available', 'Condition' => 'All', 'AssociateTag' => 'adamcapr-20', ), $public_key, $private_key );
if ( $pxml === False ) {
$trans = 'n/a';
}
else {
if ( isset( $pxml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice ) ) {
$trans = $pxml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice;
}
else {
$trans = 'n/a';
}
}
// Save our new transient, plus save it in the longer "backup" transient.
set_transient($transName, $trans, 60 * 60 * $cacheTime);
endif;
return $trans;
}
And I call it within my templates like this:
if ( get_post_meta($post->ID, 'asin', true) ) {
$asin = get_post_meta($post->ID, 'asin', true);
$out .= '<h4>Price on Amazon: ';
if ( function_exists('get_amazon_price') ) $out .= get_amazon_price($asin);
$out .= '</h4>';
}
Basically I save a transient value, and call it within my template. On the first page load it shows up ok, but on subsequent views the error shows.
Any idea how to fix the issue? Thanks!
]]>How soon does cache expires?
I want an extra option for manual limitation of cache lifetime.
Like “Cache expires after every <input> seconds”.
Thanks.
]]>Is WP File Cache like DB Cache Reloaded? Is it possible (recommended) to use this caching plugin in combination with wp super cache?
]]>w3-total-cache gives these features:
wp-file-cache says:
The plugin implements object level persistent caching and can be used instead of the built in WordPress WP_Object_Cache.
so the features are equal?
is it ok to use both plugins?
can I use only w3-total-cache (it will do all the job wp-file-cache does?)?
https://www.ads-software.com/extend/plugins/w3-total-cache/
https://www.ads-software.com/extend/plugins/wp-file-cache/
Does wp-file-cache increase the memory usage?
I have a bad limits on my virtual, is it possible risk of using this plugin?
]]>Hey Dev
i under stand difference between your plugin and other cache plugin , i love you plugin, work great now my page load time 0.05 second as per pingdom tool before it’s 23 second .
i like to know
1 , can i place the cache in sub domain or cdn network ?
Note : site content will not be updated very offen , once in a 6 month may be
]]>Cause a mistake I lost so many data from MYSQL. Very luckily I found WP-FILE-CACHE have stored my data to its cache folder. I really want to import the data from cache folder to my MYSQL.
Vladimir_kolesnikov please help me.
From a Fan of WP-FILE-CACHE
]]>