whatsthatbugcom
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingWell, it looks like it *is* serving cached pages. Something is screwy with my browser cache. Not being logged in wasn’t good enough, but an incognito window showed me the truth. Thank you for taking a stab at it, and for writing the plugin!
Any idea on the PHP Warnings? They are still coming fast and furious.
Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingI swapped the position of those 2 entries in advanced-cache.php, and pages are being cached – if I telnet localhost 11211, stats and stats cachedump show that there is relevant data. But they are not being served.
These lines are still filling up the php-fpm error log:
[10-Sep-2014 15:13:20 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126Any thoughts on why the cached pages aren’t being served now?
Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingadvanced-cache.php has 2 sections that are identical except for the server name. One is test.whatsthatbug.com and one is http://www.whatsthatbug.com.
Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingCould this have any relevance? This is scrolling in my php-fpm error logs:
[10-Sep-2014 13:36:01 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126 [10-Sep-2014 13:36:08 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126 [10-Sep-2014 13:36:11 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126 [10-Sep-2014 13:36:11 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126 [10-Sep-2014 13:36:12 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126 [10-Sep-2014 13:36:12 UTC] PHP Warning: wp-ffpc clearing scheduled hook wp-ffpc-precache-task in /var/www/html/wtb.com/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingIt is:
define(‘WP_CACHE’, true);
Forum: Plugins
In reply to: [WP-FFPC] WP-FFPC stopped cachingI thought it might be helpful if I post my nginx config for whatsthatbug.com:
server { # URL: Correct way to redirect URL's server_name whatsthatbug.com test.whatsthatbug.com; rewrite ^/(.*)$ http://www.whatsthatbug.com/$1 permanent; } server { server_name www.whatsthatbug.com; root /www/htdocs/wtb.com; access_log /var/log/nginx/whatsthatbug.com.access.log; error_log /var/log/nginx/whatsthatbug.com.error.log; include templates/common.conf; location ~* \.(?:js|css|png|jpg|jpeg|gif|ico)$ { expires 1m; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } # SECURITY : Deny all attempts to access PHP Files in the uploads directory location ~* /(?:uploads|files)/.*\.php$ { deny all; } location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_index index.php; fastcgi_pass php5-fpm-sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } location / { try_files $uri $uri/ @memcached; } # try to get result from memcached location @memcached { default_type text/html; set $memcached_key data-$scheme://$host$request_uri; set $memcached_request 1; # exceptions # avoid cache serve of POST requests if ($request_method = POST ) { set $memcached_request 0; } # avoid cache serve of wp-admin-like pages, starting with "wp-" if ( $uri ~ "/wp-" ) { set $memcached_request 0; } # avoid cache serve of any URL with query strings if ( $args ) { set $memcached_request 0; } if ($http_cookie ~* "comment_author_|wordpressuser_|wp-postpass_|wordpress_logged_in_" ) { set $memcached_request 0; } if ( $memcached_request = 1) { add_header X-Cache-Engine "WP-FFPC with apc via nginx"; memcached_pass memcached-servers; error_page 404 = @rewrites; } if ( $memcached_request = 0) { rewrite ^ /index.php last; } } ## rewrite rules location @rewrites { add_header X-Cache-Engine ""; rewrite ^ /index.php last; } # PLUGINS : Enable Rewrite Rules for Yoast SEO SiteMap rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; }Forum: Plugins
In reply to: [WP-FFPC] Cache duration: create exceptions for some pages?What if you set cache invalidation to “modified post and posts index page”?
Forum: Plugins
In reply to: [W3 Total Cache] Trouble with nginxAs an additional interesting data point, I have Cache Preload enabled in the w3tc settings, and we have thousands of pages of content, so it seems that page_enhanced should be chock full of _index files!
Forum: Fixing WordPress
In reply to: Automatic update for all pluginsDid you find a solution for this? I am seeing the same problem.
Forum: Plugins
In reply to: [Contact Form 7] errors in my php-fpm log since contact form 7 installedI am seeing the same errors. WordPress 3.5.1, and the latest version of CF7.
D’oh! Somehow when I imported my categories from the old site, it put each one as a top-level category rather than the proper hierarchy 🙁 I suspect once I fix that, FoCaL will work as well as ever!
Sorry, I meant to post an update showing how I fixed it.
http://www.clickthrough-marketing.com/how-to-fix-auto-post-thumbnail-on-wordpress-3.4-seo-friendly-800610805/ was the key.
Also, regenerate the thumbnails using the Auto Post Thumbnail plugin.
Forum: Plugins
In reply to: [W3 Total Cache] Using nginx varnish, cache not being purgedThanks, Frederick! Is that release fairly imminent?
Hello. I installed this on my site, and it looks like an awesome idea. But I’m not seeing the different moods, only the percentages. http://bullieswithbadges.net/2011/12/30/hello-world/ if you want to see.
Thanks,
Daniel
Forum: Plugins
In reply to: [W3 Total Cache] Using nginx varnish, cache not being purgedI found a better place in the stack to do the redirect: varnish.
In sub vcl_recv, I added:
if ( req.http.user-agent ~ "(.*iphone.*|.*ipod.*|.*incognito.*|.*webmate.*|.*android.*|.*dream.*|.*cupcake.*|.*froyo.*|.*blackberry9500.*|.*black$ { set req.http.newhost = regsub(req.http.host, "(www)?.(.*)", "http://m.2"); error 750 req.http.newhost; }And then
sub vcl_error { if (obj.status == 750) { set obj.http.Location = obj.response; set obj.status = 302; return(deliver); } }I hope this helps someone else!