Title: samlangdon's Replies | WordPress.org

---

# samlangdon

  [  ](https://wordpress.org/support/users/samlangdon/)

 *   [Profile](https://wordpress.org/support/users/samlangdon/)
 *   [Topics Started](https://wordpress.org/support/users/samlangdon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/samlangdon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/samlangdon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/samlangdon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/samlangdon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/samlangdon/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Printify for WooCommerce] Please update your plugin](https://wordpress.org/support/topic/please-update-your-plugin-14/)
 *  [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/please-update-your-plugin-14/#post-17960190)
 * Same issue here and haven’t had much luck with Printify support (logged with 
   the tech team, but no response from them after a week). I’ve customised the get_shipping_rates
   function in the Printify_Shipping_API class for the plugin on my site for now.
   Nothing fancy – I’m saving the Printify API results in PHP session after it’s
   called for the first time and using that until the request (basket contents &
   shipping address) changes, but it dramatically reduces basket & checkout page
   load time. I’ve shared the code with Printify via my support ticket and suggested
   they implement something like this in the plugin. In the meantime, I’ve disabled
   auto updates for the plugin on my site and will wait to see what happens in future
   versions. Happy to share if it helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Cache control headers not appearing](https://wordpress.org/support/topic/cache-control-headers-not-appearing/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/cache-control-headers-not-appearing/#post-16403383)
 * Hi Marko,
 * Many thanks for coming back so quickly – I’ve actually just figured out what 
   the problem was. I realise that on the site where I was testing, although I’d
   stripped out all the plugins et al, I was still logged in as a non-admin user(
   required for site functionality). WordPress understandably adds non-caching headers
   for all logged-in users. When I log out, the headers look correct as I set in
   W3TC browser caching.
 * Sorry to waste your time – I’ll close the ticket. Hopefully this might help someone
   else with a similar issue searching through tickets one day!
 * All the best,
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Cache control headers not appearing](https://wordpress.org/support/topic/cache-control-headers-not-appearing/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/cache-control-headers-not-appearing/#post-16402525)
 * Sorry, it was a long day – realise I should have been looking at the HTTP headers!
   So now I see the cache-control header, but I do still have an issue with this.
   I’ve got expires time set to 3600, but the cache-control header looks like this
   on pages and posts:
 * cache-control: no-cache,must-revalidate,max-age=0,public
 * Any ideas much appreciated.
 * Many thanks,
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Varnish/Nginx Proxy Caching] Timeout when saving large menus](https://wordpress.org/support/topic/timeout-when-saving-large-menus/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years ago](https://wordpress.org/support/topic/timeout-when-saving-large-menus/#post-9340669)
 * Great, thanks very much Razvan – looks like that’s done the job!
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Varnish/Nginx Proxy Caching] ob_end_flush error](https://wordpress.org/support/topic/ob_end_flush-error-2/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ob_end_flush-error-2/#post-8952948)
 * Excellent – looks like that’s done the job. Thanks very much Razvan.
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Varnish/Nginx Proxy Caching] ob_end_flush error](https://wordpress.org/support/topic/ob_end_flush-error-2/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ob_end_flush-error-2/#post-8943754)
 * Great, thanks very much Razvan.
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Slow Wordfence calls](https://wordpress.org/support/topic/slow-wordfence-calls/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/slow-wordfence-calls/#post-8702431)
 * No worries and thanks for coming back Matt. We generally turn off the live traffic
   view, so that element’s not a problem. Performance seems to have improved since
   excluding synching on wflogs – I guess that comes at the expense of having well
   tuned firewall rules, although haven’t had any complaints on that score yet (
   i.e. visitors or WP users receiving 503s). We’re planning to install the Apache
   Mod Sec WAF commercial rules from Trustwave so we can maintain rules in one place
   that run as soon as users hit Apache for any of our sites (including some non
   WP sites), so may turn off the Wordfence WAF to save doubling up. Out of curiosity,
   have you heard of any clashes between Apache based WAF and Wordfence WAF? I presume
   they would work okay together, but it’s just a bit redundant to have the server
   use resources carrying out a similar set of checks twice on each request.
 * The file permissions issue made a huge difference for us, but maybe there’s something
   unusual about the setup we have. All is working fine now those folders have the
   right permissions anyway.
 * Thanks,
    Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Slow Wordfence calls](https://wordpress.org/support/topic/slow-wordfence-calls/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/slow-wordfence-calls/#post-8665450)
 * Hi again Matt,
 * I’ve looked a little further into this and found the following:
 * 1) The IO was a red herring I think – an IO monitor (New Relic) was telling me
   IO was 100%, but turned out to be because of an unfinished transaction somewhere–
   once I rebooted the server, that sorted itself out and IO on the servers is actually
   fine. I have excluded wflogs files from rsyncing between servers now anyway, 
   as I think this might have been confusing matters and is unecessary work. Out
   of curiosity, do you know what would happen if the same site has two different
   copies of the wflogs files on different load balanced servers? (since different
   requests will come to each server)
 * 2) I don’t think noc4.wordfence.com is causing a problem for website visitors
   on my server. I’m currently seeing around 30 calls per minute to it between all
   the sites and it is consistently the most called, slowest external service, but
   so long as it runs in the background and doesn’t eat too many server resources,
   I don’t suppose it should be an issue.
 * 3) Most importantly, I think I’ve finally figured where the main issue is that
   has been slowing down the response to website visitors. Looks like it simply 
   came down to /wp-content/plugins/wordfence/tmp and /wp-content/wflogs folders
   not having permission for the web server account to write to them. I could see
   Wordfence was trying to chmod them and getting permission denied on a rename 
   relating to them and I guess this was taking several seconds for some reason.
   I changed these folders from 755 to 775 on all our sites and now this appears
   to be resolved. I could see the tmp folder not having correct permissions showed
   up in the Wordfence diagnostics page, but it certainly wasn’t clear this was 
   causing such a major issue, so it might be worth putting something more prominent
   in, in case anyone else has this issue and doesn’t realise.
 * Thanks,
    Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Slow Wordfence calls](https://wordpress.org/support/topic/slow-wordfence-calls/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/slow-wordfence-calls/#post-8630827)
 * Hi Matt,
 * Thanks for coming back to me. My guess is that between the 40 plus sites, they
   probably are pretty much constantly under attack between them. I can see wordfence_syncAttackData
   has been called around 6,000 times on our servers (I can see this from running
   queries on Apache logs) in the last 12 hours, with most of the calls coming from
   a dozen sites, that have presumably been attacked more than the rest.
 * We don’t use NFS, but I do see high IO on these web servers, a reasonable amount
   of which coming from Apache (looking at iotop), so I think the frequent writing
   to disk could be causing an issue for us. It’s maybe compounded by the fact we
   have a load balanced master/slave web server setup running where rsync is updating
   the slave with all file changes in the websites.
 * I would prefer not to turn the Wordfence firewall off on these sites – is there
   any way to turn the writing to disk and synching off without turning off the 
   firewall?
 * Thanks,
    Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Subscribe2 - Form, Email Subscribers & Newsletters] Not all subscribers are sent emails from posts](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/#post-6022709)
 * Marvellous, thanks very much [@mattyrob](https://wordpress.org/support/users/mattyrob/)–
   looks like that’s done the trick!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Subscribe2 - Form, Email Subscribers & Newsletters] Not all subscribers are sent emails from posts](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/#post-6022706)
 * Thanks for the quick response [@mattyrob](https://wordpress.org/support/users/mattyrob/)
 * I’m using version 10.18.4
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Subscribe2 - Form, Email Subscribers & Newsletters] Not all subscribers are sent emails from posts](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/)
 *  Thread Starter [samlangdon](https://wordpress.org/support/users/samlangdon/)
 * (@samlangdon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-all-subscribers-are-sent-emails-from-posts/#post-6022700)
 * Thanks very much for the tip [@mattyrob](https://wordpress.org/support/users/mattyrob/).
   I think I’ve now figured out the reason it’s not working in some cases, but I’m
   not entirely sure how to fix it.
 * What’s happening is, when a user registers and chooses the categories they are
   interested in on the front end of the site (for which I’m using TT Subscribe2
   Frontend plugin), they don’t receive emails.
 * If you then edit the person’s categories in the Subscribe2 area, they do receive
   emails. I can see the meta key: wp_6_s2_authors is being added in the usermetadata
   database table for that user at this point, which I gather tells Subscribe2 which
   authors that person doesn’t want to receive emails from (usually the value is
   empty, as the person would want to hear from all authors). So I guess, without
   that, it assumes they don’t want to hear from any authors.
 * Can you think of a workaround for this so everyone is automatically subscribed
   to emails from all authors? (within the categories they specify)
 * Many thanks,
    Sam

Viewing 12 replies - 1 through 12 (of 12 total)