Mos Craciun
Forum Replies Created
-
This is how I got it in the end:
$preloadsListJson = get_option(WPACU_PLUGIN_ID.'_global_data'); if ($preloadsListJson) { $preloadsList = @json_decode($preloadsListJson, true); // Issues with decoding the JSON file? Return an empty list if (Misc::jsonLastError() !== JSON_ERROR_NONE) { return; } $fromLocation = ($GLOBALS['wpacu_from_location_inc'] % 2) ? 'db' : 'disk'; // Are new positions set for styles and scripts? if (isset($preloadsList['styles']['preloads']) && ! empty($preloadsList['styles']['preloads'])) { foreach ($preloadsList['styles']['preloads'] as $key => $value) { $handleDbStr = md5($key); $transientName = 'wpacu_css_optimize_'.$handleDbStr; $transientFile = @json_decode( \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getTransient($transientName, $fromLocation), true ); } } if (isset($preloadsList['scripts']['preloads']) && ! empty($preloadsList['scripts']['preloads'])) { foreach ($preloadsList['scripts']['preloads'] as $key => $value) { $handleDbStr = md5($key); $transientName = 'wpacu_js_optimize_'.$handleDbStr; $transientFile = @json_decode( \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getTransient($transientName, $fromLocation), true ); } } }
- This reply was modified 3 years, 7 months ago by Mos Craciun.
Forum: Plugins
In reply to: [W3 Total Cache] No minify assets with self signed SSLThe test fails because it can’t access a local website served through a self signed certificate. How that isn’t a W3 Total Cache issue? And how using a self signed certificate on a local site used for development is the real issue? The solution you provided above has nothing to do with self signed certificates. The Certificate Authority list found on the link above only provides an up to date CA list.
- This reply was modified 3 years, 8 months ago by Mos Craciun.
Forum: Plugins
In reply to: [W3 Total Cache] No minify assets with self signed SSLThat doesn’t solve the issue with self signed certificates. Adding:
‘sslverify’ => false
to w3-total-cache/Util_Http.php after line 36 does help with the test.
However, since it is hard to follow the code logic through debugging I don’t know yet why W3 Total Cache fails to generate the assets.Forum: Plugins
In reply to: [W3 Total Cache] Multisite Redis brokenHere it is: https://ibb.co/jGgnP3S
Thank you.Forum: Plugins
In reply to: [W3 Total Cache] Database Cache with Redis does nothingWhat does have the browser to do with Redis? As I explained caching isn’t working with Redis. Keys get pushed to the DB but don’t get pulled.
Forum: Plugins
In reply to: [W3 Total Cache] Multisite Redis brokenJust to clarify, I have clicked on the “Use specific settings” button on the sub-site before trying to edit the Redis settings but that doesn’t enabled the “Redis Database ID:” field.
Thank you.Forum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsAnother feature which would be quite nice is to minify and compress the assets but not combine them. That would help avoid breaking functionality in some cases while maintaining good performance with HTTP2 enabled.
Thank you.Forum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsIn the end it looks like it was a configuration issue. All good now.
However, it looks like Autoptimize is better at minifying the assets. With W3 Total Cache Minify the assets are broken while I don’t encounter such an issue with Autoptimize.
Thank you.Forum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsTried to simplify thing and disabled the “Browser Cache”. Made sure to have the following in the nginx config files:
# BEGIN W3TC Minify core
set $w3tc_enc “”;
if (-f $request_filename$w3tc_enc) {
rewrite (.*) $1$w3tc_enc break;
}
rewrite ^/wp-content/cache/minify/ /index.php last;
# END W3TC Minify coreNo minified assets are being generated.
Forum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsI have the following added to nginx:
# BEGIN W3TC Minify cache
location ~ /wp-content/cache/minify/.*js_gzip$ {
gzip off;
types {}
default_type application/x-javascript;
add_header Content-Encoding gzip;
expires 31536000s;
etag on;
if_modified_since exact;
add_header Referrer-Policy “no-referrer-when-downgrade”;
add_header Vary “Accept-Encoding”;
}
location ~ /wp-content/cache/minify/.*css_gzip$ {
gzip off;
types {}
default_type text/css;
add_header Content-Encoding gzip;
expires 31536000s;
etag on;
if_modified_since exact;
add_header Referrer-Policy “no-referrer-when-downgrade”;
add_header Vary “Accept-Encoding”;
}
# END W3TC Minify cacheand
# BEGIN W3TC Minify core
set $w3tc_enc “”;
if ($http_accept_encoding ~ gzip) {
set $w3tc_enc _gzip;
}
if (-f $request_filename$w3tc_enc) {
rewrite (.*) $1$w3tc_enc break;
}
rewrite ^/wp-content/cache/minify/ /index.php last;
# END W3TC Minify coreForum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsLooks like that actually doesn’t really help. cache/minify/ is still empty. So, most likely the nginx rules simply do redirect to some sort of dynamic assets generation.
My best.Forum: Plugins
In reply to: [W3 Total Cache] Minify doesn’t generate the minified assetsNevermind. Looks like it isn’t working out of box (as Autoptimize does for example). Once I update the nginx settings it starts working just fine.
Forum: Plugins
In reply to: [WooCommerce] Broken products importHello.
It looks like this was related to broken CSV.
Thank you.Forum: Plugins
In reply to: [WooCommerce] Broken products importIt looks like it doesn’t take into account the “Update Existing Products” checkbox at all.
Yes. It’s a Microsoft Office file. It works with other plugins. If this is a bug I can try to remove the review.