How can we set how long for the cache file before it get new cache file?
]]>Hi.
Love this plugin. Works fine normally, but just tried it with an ajax call and nothing happened.
What i’m doing is caching a row in a table. Each row has a unique name. and the entire table is loaded via a jquery ajax call.
When i check the fragment cache folder, no file is being saved from this action.
My guess is that because it’s not calling the function on the page load that it’s working.
Any help on this much appreciated. Would love to be able to use this type of caching in this scenario.
Nic
]]>Hi,
I’m currently using FragmentCache on a CMS type of wordpress install where a post has a lot of custom field data. This data is also shown on an archive page in a table. This table would normally take 15 seconds to load, but by caching each row this is down to under 1 second. I can’t cache the entire table because it’s based on a search and can be different each time.
This is all working fine, except that the datatable doesn’t update when I update an individual post unless I clear the entire cache. This I assume is happening because the the archive page isn’t checking the date of the original post.
I think this functionality however is possible, but wanted to ask you for your advice.
Because each row has a structured name based on the original post name (each row corresponds to one post) would it be possible to delete this row using post_updated? Or would there be an easier way to do this?
Hope that all makes sense.
]]>I keep receiving this upon attempting to activate this plugin:
Parse error: syntax error, unexpected $end in xxx\wp-content\plugins\fragmentcache\fragment_cache.php on line 161
Not sure if there’s anything wrong with that file or my WP setup, but this plugin can’t be activated (at least for me).
]]>Hello, I installed your plugin over at johnny-depp.org / deppheads.com (a website with different themes and bbpress which is why I can’t use those huge caching plugins) and did a test with my page.php (default code for the beginning), reloaded one page, but the only thing I get is some notices in the debug.log:
[20-Nov-2013 09:24:08 UTC] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/johnnyde/public_html/wordpress/wp-content/plugins/fragmentcache/fragment_cache.php on line 113
[20-Nov-2013 09:24:08 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/johnnyde/public_html/wordpress/wp-content/plugins/fragmentcache/fragment_cache.php on line 114
[20-Nov-2013 09:24:17 UTC] PHP Warning: fopen(wp-content/cache/fragment-cache/johnny__biography__birthtochildhood__20090731_114638__0.txt) [function.fopen]: failed to open stream: No such file or directory in /home/johnnyde/public_html/wordpress/wp-content/plugins/fragmentcache/fragment_cache.php on line 112
I tried chmod-ing the fragment-cache folder to 777, but usually 755 is enough on our server – this did not make it work.
And: is there a possibility to edit the fragmentCache so that the site works also with the plugin deactivated? Without the PHP Fatal error: Class ‘FragmentCache’ not found?
Does it make sense to combine it with EM Object Cache or is it contra-productive?
Thank you, Martina.
]]>Hi Dave!
I found your plugin via this link:
https://wordpress.stackexchange.com/questions/95717/ajax-vs-fragment-caching-for-w3-total-cache?rq=1
So I would be glad, if you could point out how to use this, when trying to exclude this sidebar from w3tc:
<aside class="columns" id="leftbar"><?php dynamic_sidebar( 'sidebara' ); ?></aside>
Would be awesome, if I could get this work!
Thankyou!
]]>I really hope this is finally an answer for our, and many other’s cart66’s sites.
Currently, we simply show the cart66’s cart widget via a sidebar call:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : endif; ?>
Is there any way to prevent caching of that sidebar? Or a better alternative to call it that is compatible with your plugin?
The store’s pages are also domain.com/store/cart domain.com/store/checkout etc. Is there a way to disable cashing on all /store/ pages?
I’m really excited about the prospects of this plugin.
Thanks!