blindpet
Forum Replies Created
-
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2Very cool, well as you can probably see I’m willing to speed this along so if we can arrange something privately let me know.
My logo searching is giving me nothing as cool as the purple hatted bunny.
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2OK cool, what is the best way for me to monitor for a new version that support this? Mailing list or anything?
Also where can I get the original varnish graphic you are using, I’d like the bunny with the hat centered in a cloud and my feeble attempts to manipulate the one you are using failed. Any help would be appreciated.
Also, if you are interested I can hire you to code the updated version of the plugin, are you on freelancer or anything?
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2Where are the hosts getting VCLs from? If there is some place they get them I can put the info there so they can update them, it really isn’t reinventing the wheel as you can see.
I guess I was ignorant about how many people use shared hosting, that’s really sad.
If you manage to implement it that would be amazing.
I will watch the git version to see when it is stable. I will try and find time to test it should you implement this feature. Is the current version of the plugin in the WP repo the one on github – you seem to imply it is different.
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2I hear you, I’m not suggesting it replaces existing functionality but that it is an option. To be fair the vcl change is minor but even the smallest changes can throw a wrench in the works for many users.
I always assumed managed WP host people needed to set up a vcl anyway if Varnish was in their cpanel or whatever it’s called.
The alternative for me is to get a plugin created that does this, is the current plugin on github so it can be forked and this functionality added by somebody who knows php better than me?
I plan to never purge again 😉
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2I have ended up doing something much better which warms up and refreshes the Varnish cache (using req.hash_always_miss) without purging so cached pages are always served. I have detailed how easy it is to set up and provided 3 scripts which should be easily adaptable for the plugin.
http://www.htpcguides.com/smart-warm-up-your-wordpress-varnish-cache-scripts/
Forum: Plugins
In reply to: [Wp-Insert] Hide ads in RSS FeedStill not seeing this feature, will a donation make this happen sooner?
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2Oh ok, I guess I never noticed since it didn’t work for me. I assumed purge just purged everything. Cool to know it purges intelligently.
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2hehe OK. I wish you luck diagnosing, if there is anything else I can provide let me know.
Do you have plans to implement per page purging instead of emptying the whole cache only?
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2I am on this version of PHP: PHP Version 5.4.41-0+deb7u1
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2Just wanted to let you know I am using W3 Total Cache and it purges varnish successfully, both for individual posts and emptying the whole cache.
Before I was using WP-rocket and your plugin did not work with that on my setup even though that is what they recommended I use.
Unfortunately I am migrating to nginx so that is what my test server is running and varnish isn’t installed there yet but if I do decide to use varnish again I will give you access to the test server to debug.
I have an update from the EWWW plugin author:
Indeed it does seems to loop for quite a while, and the reason is that OTF is generating fresh thumbnails for all the images in the media library when you view it… the result is that EWWW also optimizes those images when they are generated.
I don’t think OTF used to do that in the Media Library, but it does now. The grid view will also load eventually, just like the list, but it takes longer, because there are generally more images being viewed in grid view. Not sure there is anything I can do on my end to prevent that, a simple check for is_admin() in OTF would probably take care of things.I have identified the conflict, disabling EWWW Image Optimizer resolves the issue. However, I still feel like OTF shoudld not be trying to regenerate thumbnails unnecessarily.
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2Fix gp premium is a custom plugin as is highlight-rightclick-disabler
Forum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2No problem, here you go. I won’t be able to test it or anything just so you know but it should be enough info for you to diagnose the issue. I was using varnish 3 and Apache.
advanced-excerpt sticky-menu-or-anything-on-scroll fix-gp-premium wp-insert readme.txt wordpress-popular-posts simple-custom-css contextual-related-posts contact-form-7 wpclef simple-share-buttons-plus .. homepage_excerpts.zip visual-editor-custom-buttons rocket-lazy-load sem-external-links image-zoom all-in-one-schemaorg-rich-snippets better-delete-revision mailchimp-for-wp pretty-link paypal-donations pluginception tablepress really-simple-captcha gp-premium featured-images-for-rss-feeds easyazon-pro-4.0.7 . simple-image-sizes recently disqus-conditional-load findsql nxs-snap-pro-upgrade highlight-rightclick-disabler all-in-one-wp-security-and-firewall sociallocker-next-premium easyazon ewww-image-optimizer index-wp-redis.php w3-total-cache page-number-styles index.php updraftplus wordpress-seo slidedeck-lenses wp-category-tag-could social-networks-auto-poster-facebook-twitter-gForum: Plugins
In reply to: [Proxy Cache Purge] Not Purging since 3.7.2I never used older versions so it’s possible it never worked for me.
I use Mantle https://wordpress.org/themes/mantle/
I have about 40 plugins installed so it’s quite ridiculous, but if you want a list I can take a screenshot.
My varnish server is running on the same device and is set to allow 127.0.0.1. Here is the config file
/* SET THE HOST AND PORT OF WORDPRESS * *********************************************************/ backend default { .host = "127.0.0.1"; .port = "8080"; } # SET THE ALLOWED IP OF PURGE REQUESTS # ########################################################## acl purge { "localhost"; "127.0.0.1"; } #THE RECV FUNCTION # ########################################################## sub vcl_recv { # For Testing: If you want to test with Varnish passing (not caching) uncomment # return( pass ); # FORWARD THE IP OF THE REQUEST if (req.restarts == 0) { if (req.http.x-forwarded-for) { set req.http.X-Forwarded-For = req.http.X-Forwarded-For + ", " + client.ip; } else { set req.http.X-Forwarded-For = client.ip; } } # CLEAN UP THE ENCODING HEADER. # SET TO GZIP, DEFLATE, OR REMOVE ENTIRELY. WITH VARY ACCEPT-ENCODING # VARNISH WILL CREATE SEPARATE CACHES FOR EACH # DO NOT ACCEPT-ENCODING IMAGES, ZIPPED FILES, AUDIO, ETC. # ########################################################## if (req.http.Accept-Encoding) { if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") { # No point in compressing these remove req.http.Accept-Encoding; } elsif (req.http.Accept-Encoding ~ "gzip") { set req.http.Accept-Encoding = "gzip"; } elsif (req.http.Accept-Encoding ~ "deflate") { set req.http.Accept-Encoding = "deflate"; } else { # unknown algorithm remove req.http.Accept-Encoding; } } # IF THIS IS A PURGE REQUEST, THEN CHECK THE IPS SET ABOVE # BLOCK IF NOT ONE OF THOSE IPS # ########################################################## if (req.request == "PURGE") { if ( !client.ip ~ purge ) { error 405 "Not allowed."; } return (lookup); } # PIPE ALL NON-STANDARD REQUESTS # ########################################################## if (req.request != "GET" && req.request != "HEAD" && req.request != "PUT" && req.request != "POST" && req.request != "TRACE" && req.request != "OPTIONS" && req.request != "DELETE") { return (pipe); } # ONLY CACHE GET AND HEAD REQUESTS # ########################################################## if (req.request != "GET" && req.request != "HEAD") { return (pass); } # OPTIONAL: DO NOT CACHE LOGGED IN USERS (THIS OCCURS IN FETCH TO, EITHER # COMMENT OR UNCOMMENT BOTH # ########################################################## if ( req.http.cookie ~ "wordpress_logged_in" ) { return( pass ); } # IF THE REQUEST IS NOT FOR A PREVIEW, WP-ADMIN OR WP-LOGIN # THEN UNSET THE COOKIES # ########################################################## if ( !(req.url ~ "wp-(login|admin)") && !(req.url ~ "&preview=true" ) ){ unset req.http.cookie; } # IF BASIC AUTH IS ON THEN DO NOT CACHE # ########################################################## if (req.http.Authorization || req.http.Cookie) { return (pass); } # IF YOU GET HERE THEN THIS REQUEST SHOULD BE CACHED # ########################################################## return (lookup); if (req.http.Host == "pmadomain.com") { return (pass); } } # HIT FUNCTION # ########################################################## sub vcl_hit { # IF THIS IS A PURGE REQUEST THEN DO THE PURGE # ########################################################## if (req.request == "PURGE") { purge; error 200 "Purged."; } return (deliver); } # MISS FUNCTION # ########################################################## sub vcl_miss { if (req.request == "PURGE") { purge; error 200 "Purged."; } return (fetch); } # FETCH FUNCTION # ########################################################## sub vcl_fetch { # I SET THE VARY TO ACCEPT-ENCODING, THIS OVERRIDES W3TC # TENDANCY TO SET VARY USER-AGENT. YOU MAY OR MAY NOT WANT # TO DO THIS # ########################################################## set beresp.http.Vary = "Accept-Encoding"; # IF NOT WP-ADMIN THEN UNSET COOKIES AND SET THE AMOUNT OF # TIME THIS PAGE WILL STAY CACHED (TTL) # ########################################################## if (!(req.url ~ "wp-(login|admin)") && !req.http.cookie ~ "wordpress_logged_in" ) { unset beresp.http.set-cookie; set beresp.ttl = 24h; } if (beresp.ttl <= 0s || beresp.http.Set-Cookie || beresp.http.Vary == "*") { set beresp.ttl = 120 s; return (hit_for_pass); } return (deliver); } # DELIVER FUNCTION # ########################################################## sub vcl_deliver { # IF THIS PAGE IS ALREADY CACHED THEN RETURN A 'HIT' TEXT # IN THE HEADER (GREAT FOR DEBUGGING) # ########################################################## if (obj.hits > 0) { set resp.http.X-Cache = "HIT"; # IF THIS IS A MISS RETURN THAT IN THE HEADER # ########################################################## } else { set resp.http.X-Cache = "MISS"; } }