mattiasf
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] How can I tell feeder to return thumbnails?You successfully fail to describe how this can be done, apart from, in a very abstract way, saying it can be done.
Forum: Plugins
In reply to: [Kraken.io Image Optimizer] Very bad “krak’em’all” feature – missing CLIWhen I then select all images to from the list and click “Krak em all” I don’t have any option to start. The modal that shows up is empty.
Forum: Plugins
In reply to: [SearchWP Live Ajax Search] Compatible with ElasticPress?Have created an issue here: https://www.ads-software.com/support/topic/cant-search-custom-product-attributes/ not sure if this is related to ElasticPress or this plugin.
Forum: Plugins
In reply to: [SearchWP Live Ajax Search] Compatible with ElasticPress?I just installed it, and search appears to be MUCH faster. However, I cannot seem to search by product attributes any more. Product Category works, but custom attributes doesn’t seem to be included.
Forum: Plugins
In reply to: [SearchWP Live Ajax Search] Compatible with ElasticPress?Sweet! Thanks ??
Forum: Plugins
In reply to: [W3 Total Cache] Using W3 with varnishHi Marko, thanks for your fast reply!
That’s just what I need. Do you have any guides on setting up Varnish on a nginx server on ubuntu?
Forum: Plugins
In reply to: [W3 Total Cache] gzip not enabledHere is the compatibility test: https://i.imgur.com/2bMCDhl.png
We’re using nginx.heres the report: https://gtmetrix.com/reports/thejewelleryroom.com/PiTdD4DG
Forum: Plugins
In reply to: [Autoptimize] Gzip not enabled on nginx serverLink appears like this: https://d2e323rcdi21y6.cloudfront.net/wp-content/cache/autoptimize/autoptimize_76e0e2122451992a5f1429cbb1c51381.php
Which is the correct CDN url.
CDN URL is being applied by W3 Total Cache.
Perhaps because it’s a .php file?
- This reply was modified 5 years, 4 months ago by mattiasf.
Hi Marko,
I checked this by opening Incognito browser mode, and the redirect was still being made. Also calling curl -I would instruct to redirect.
Hi @vmarko I just got your reply.
Prior to your answer I already naturally did this. I tried removing all contents of /cache/. I also (of course!) did verify that the URL was correct.
As said, removing db.php, advanced-cache.php and object-cache.php and then activating plugin again solved the issue.
But I’d still like to know why.
Deleting db.php, advanced-cache.php and object-cache.php and then activating plugin again solved the issue.
But what is the proper workaround?
Right – my apologies, I could have told myself that. Thanks ??
Forum: Plugins
In reply to: [W3 Total Cache] Use same distribution as production on localThis is a workaround I’ve crafted that seems to do the trick. You should implement some feature to accomplish this.
/** * Change to CDN url on local */ if(get_stage_environment() == 'local' || get_stage_environment() == 'staging') { add_filter('wp_get_attachment_url', function($url, $post_id) { $url = str_replace($_SERVER['HTTP_HOST'], 'YOURCDN.cloudfront.net', $url); return $url; }, 10, 2); add_filter('wp_calculate_image_srcset', function($sources, $post_id) { foreach($sources as $key => $data) { $sources[$key]['url'] = str_replace($_SERVER['HTTP_HOST'], 'YOURCDN.cloudfront.net', $data['url']); } return $sources; }, 10, 2); }
- This reply was modified 5 years, 6 months ago by mattiasf.
Forum: Plugins
In reply to: [W3 Total Cache] Use same distribution as production on localSo what do you recommend in terms of having an identical localhost with your production server? Downloading 2GB of images, and throwing theese up to CDN? There must be a simple way…
Forum: Plugins
In reply to: [W3 Total Cache] Use same distribution as production on localI am just using CloudFront CDN