Marco Canestrari
Forum Replies Created
-
Forum: Plugins
In reply to: [Mailjet Email Marketing] Redirect issue always here!Same issue here, both on standard and multisite WP Instances
Forum: Plugins
In reply to: [Yoast SEO] Yoast 16.1 triggers hundreds of CDN invalidation with w3tcHello,
while I couldn’t identify any conflicts, I was able to reproduce the issue on a brand new WP site.
WP 5.7.1
Yoast 16.1.*
W3TC 2.1.1 with Cloudfront Full Site CDN activatedthe CloudFront invalidation is triggered:
– twice when activating Yoast
– once each time I save from General > Features but only in any settings changes.No PHP errors or warnings are logged.
On a production website this is triggered hundreds of times a minutes, so it’s almost impossible to understand how exactly.
Hope this helps you to help me ??
Forum: Plugins
In reply to: [Yoast SEO] Yoast 16.1 triggers hundreds of CDN invalidation with w3tcOk will perform those checks ASAP
Forum: Plugins
In reply to: [Yoast SEO] Yoast 16.1 triggers hundreds of CDN invalidation with w3tcUpdate: it also happens on a brand new instance of WP. Nothing else then WP + W3tc (CDN Cloudfront) + Yoast, all of them up to date.
Working on that: I’m performing a local optimization of the images, removing some of them from the pages (so each page have less images) and after that I’ll try again not flushing all the cache at the same time.
Will get back to you!
The tipical page has 15-20 images, and the website is quite trafficated.
Do you think that programmatically segmenting the activation could help?
Hi, I tried but apparently it’s not a plugin conflict.
To be sure, I even changed the upload folder name to change all the file names but still for some images it fails.
Some times removing some parameters (like ssl=1 or strip=all) makes the image work, but it’s not a solution because it brakes other working images…
Thanks for any help you’d be able to provide!
Hi James,
thanks for your reply.
it happens randomly on a 3-5% of the images.
Also, if you take one that fails and remove the “ssl=1” query, it works.So I tried to remove it for all of them, but most of the ones that worked with ssl=1 does not without…
If I modify an image that does not work from the backend (like resizing it), so changing its filename, it works.
I had my provider double check and totally remove the firewall just in case (tried with other images, of course, because I know we can’t invalidate the CDN) but everything seems to be ok.
Thanks!
It worked ??
Thank you!raw class worked well! Thank you!
Unfortunatly not ??
I’ll try the raw class asap and tell you if it works!Note: I tried both “date” and “created” criteria, none of them works, unfortunatly
No problem to post here.
My site is badtaste.it, Jetpack active and connected. Related posts are working well and correctly filtered using the hook ‘jetpack_relatedposts_filter_date_range’.
I now need to get the related posts via API, to put them in my AMP version of the pages.
This is an example of the code I’m using: there is response but not filtered. I’d like to get posts old not more then 1 year.Thank you!
$query_json = '{ "size" : "3", "query": { "filtered": { "filter": { "range": { "created": { "gte": "now-1y" } } } } } }'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'https://public-api.wordpress.com/rest/v1/sites/www.badtaste.ut/posts/150840/related'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_ENCODING, "UTF-8"); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_POSTFIELDS,$query_json); $results_related = curl_exec($ch); curl_close($ch); $response = json_decode($results_related);
Forum: Plugins
In reply to: [W3 Total Cache] Disable on AMP pagesHi,
my solution is adding an action to pre_amp_render_post and setting
$wp_query->is_feed = 1No css and js and html minified. To have the AMP page cached, feed caching in
Page Cache settings must be checked// Avoid minified css and js beeing added to AMP pages add_action( 'pre_amp_render_post', 'amp_avoid_w3tc_minified_css_js' ); function amp_avoid_w3tc_minified_css_js() { global $wp_query; $wp_query->is_feed = 1; }
Forum: Plugins
In reply to: [wp-Monalisa] Breaks WP 4.4.2, no post contentsame for me