archon810
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] WP-Cron Not RunningA quick way to test this is to enable WP_DEBUG to start writing to debug.log and then add this line to wp-includes/cron.php at the top of spawn_cron():
error_log("DEBUG doing_cron transient: " . get_transient('doing_cron') . ");Then grep the logs for this and see if there’s a value printed. If memcached is misbehaving, you won’t see the value at all.
Forum: Plugins
In reply to: [W3 Total Cache] WP-Cron Not RunningI think I’ve pretty much narrowed this down to the lack of available connections, which, if reached once and doing_cron starts failing to come back in get_transient, instantly gets worse because at that point wp-cron.php starts getting pounded many times a second and exacerbating the situation.
The fix was to enable logging on memcached with -v to see in the future if the memcached server is running out of connections, and increase the number of allowed connections as well as a few other options for better performance:
-c 4096 -t 8 -R 100Default values were:
-c (max connections): 1024
-t (threads): 4
-R (maximum number of requests per event): 20What a day…
Forum: Plugins
In reply to: [W3 Total Cache] WP-Cron Not RunningUnbelievable, perhaps memcached itself is to blame here. Restarting the memcached server resulted in doing_cron values properly populating and coming back from the cache.
Now I’m really curious as to what exactly goes wrong – does the memcached server have a bug where it no longer writes certain things after some time or under certain conditions? Or it erases certain things very fast at some point. It’s supposed to be FILO cache, and with 512MB allocated to it, I don’t understand how the values could be lost in a matter of a split second…
I’m running memcached 1.4.15. I suppose I can update to the latest 1.4.17, but I am not sure what would fix it in the long run. Maybe an hourly memcached restart…
Forum: Plugins
In reply to: [W3 Total Cache] WP-Cron Not RunningConfirmed that switching W3TC to APC object caching immediately solves the issue with doing_cron cache. Switching to memcached immediately resurfaces the issue.
It’s as if something is either wiping this value from cache or prevents it from being extracted from cache properly in cron.php.
I tried printing some other transients at the same time doing_cron transient is asked from cache by cron.php, and to my surprise, those other transients were fine. It’s as if doing_cron is special, as it’s the only one suffering from this disappearance mystery.
Forum: Plugins
In reply to: [W3 Total Cache] WP-Cron Not RunningThere’s definitely a bug in the way W3TC handles object caching, at least with memcached, where the transient either doesn’t get set right or read right.
Specifically, in this case, either
set_transient( 'doing_cron', $doing_wp_cron )in cron.php doesn’t work orget_transient('doing_cron')in the same file doesn’t. I’m getting flooded with wp-cron PHP threads all doing the same schedules and shooting up the load all the time because thedoing_cronlock which usually resides in the database and is correctly parsed out of it doesn’t actually work.I’m still digging, but Frederick, I’m available to work with your team to finally squash this bug. I’ve seen references to W3TC object caching breaking transients for years now.
Forum: Plugins
In reply to: [WP-Polls] Lack of mysql index causes major performance issue for busy blogsIP alone may be enough, I haven’t tested it. The key I created is composite to match the where clause better. I’m sure you know how it use explain to make the right call 🙂
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache using wrong protocol during minify for CDNHere’s another unsolved support topic about the same thing http://wordpress.org/support/topic/minify-adding-https-to-urls-in-css?replies=4.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache using wrong protocol during minify for CDNFrederick,
Here’s something you can use to debug this issue. I’m using W3TC 0.9.4 on WordPress 2.8.2 btw. Loading images via SSL doesn’t work with our setup, so the site ends up looking broken.
The CSS file: http://cdn.androidpolice.com/wp-content/themes/ap1/style.css. As you can see, it contains many images with relative paths. For example:
#header { background: transparent url(images/header_bg_1px.png) repeat scroll 0 0; height: 124px; }Now, in http://www.androidpolice.com/wp-content/plugins/w3-total-cache/pub/minify.php?file=hY_dDoMgDIVfyA692vPwU5WkAqE1zrdfxcVki8kugEPP-QrtjS2DoejY-Dkzpu-j65tfkVE-mmUn7AbV4MiywFjzAjIjFL0Zz3xYHAM6W__mbqyTqegxCZTMwrDFMOHF3FjK-JzEeu2V6wJPE5OnNSA3qP2ZNTTa5HeXX0cKtlxD0dH4Kl9Co1vRF4jYtB20jRbFOsKTOfoGHO1K8lhiOgne0xynmXSJ0YEWvEK_NtY3.css, which I’ve mirrored here https://gist.github.com/anonymous/51e5bc6dc692f62e89e9 in case it goes away, all these images are rewritten with full paths and https for no reason.
The page I’m accessing is http://www.androidpolice.com without https.
This bug goes back over a year – can you help push out the fix once and for all? This is the last thing preventing me from using Minify CSS in W3.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache using wrong protocol during minify for CDNSame problem here. I have no idea why someone thought this would be a good idea to rewrite all images in minified CSS to https like that.
Thanks, that did it. There was a JS error – I had to replace
$withjQuery, but after that, it worked.Any way to do this for all tables? I can’t have my writers think about things like that – they’ll just forget.
Already rated 5 stars 🙂 Amazing support btw.
So I just installed and activated that extension, but it didn’t seem to work. I can see it’s loading in the html, but the sorting is still incorrect. I wonder if it’s because I have JS plugins load in the footer? This looks correct though…
<script type='text/javascript' src='http://ap2.androidpolice.com/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.3'></script> <script type='text/javascript' src='http://ap2.androidpolice.com/wp-content/plugins/tablepress-datatables-numhtml/jquery.datatables.numhtml.js?ver=1.1'></script> <script type="text/javascript"> jQuery(document).ready(function($){ $('#tablepress-1').dataTable({"aaSorting":[],"bSortClasses":false,"asStripeClasses":['even','odd'],"bPaginate":false,"bInfo":false}); $('#tablepress-1-no-2').dataTable({"aaSorting":[],"bSortClasses":false,"asStripeClasses":['even','odd'],"bPaginate":false,"bInfo":false}); }); </script>Cheers, I’ll try those out. May I suggest adding this information to the FAQ, which I checked before posting here?
Forum: Plugins
In reply to: [WP Widget Cache] Some widgets don't appear and others are brokenWithout specific examples and test data, this report is useless.
Forum: Plugins
In reply to: [External Links] 5.0 broke in-post Google Adsense ad completely5.2 fixes this, confirmed.