frenchomatic
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Page Cache] backend.min.js TypeErrorTry directly purging the cache for everything on the cloudflare admin panel. Worth a try.
Forum: Plugins
In reply to: [Super Page Cache] Test cache not workingThe behaviour where cloudflare caching needs to be enabled is still an issue in version 5.1. several people have mentioned this. A function in the next plugin to test where a url is a HIT or MISS would be useful too. I don’t know how you might integrate this.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
Forum: Plugins
In reply to: [Super Page Cache] Test cache not workingI am closing this as you have effectively recognised the issue in another thread. Thanks for a great plugin and your responsiveness.
Forum: Plugins
In reply to: [Super Page Cache] backend.min.js TypeErrorGlad to help. Great plugin but please don’t add complexities with more functionality. Just make sure it continues to work as wordpress and cloudflare update. It has been one of the best plugins over the last few years to have on a wordpress install.
Forum: Plugins
In reply to: [Super Page Cache] backend.min.js TypeErrorI confirm the same behaviour when updating the plugin on 4 different sites. Cloudflare button is set to disabled. Turning it on enables cloudflare connection but I still don’t get page caching. Test button gives undefined with a green tick which the author knows about.
Cache rules are created instead of the usual page rule but it appears to me that the first filter hostname equals domain.com is not working for some reason. Cache status remains as dynamic (I used https://hackertarget.com/http-header-check/) to see that but there are lots of ways. If I replace the first filter in cloudflare with URI wildcard https://*.domain.com/*, the cache status becomes a hit.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
Forum: Plugins
In reply to: [Super Page Cache] Test cache not workingJust a thought but the first filter defined is << hostname equals domain.com >> . I agree this should work but it doesn’t for me . It seems to be a problem. Why not use URI full and a wildcard as the first filter with all the accompanying ANDs? The cache status is then a HIT. Like this URI wildcard https://*.mydomain.com/*.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
Forum: Plugins
In reply to: [Super Page Cache] Test cache not workingBasically, I can’t get it to work unless I add in the page rule. I don’t get a CF-Cache-Status HIT and only get CF-Cache-Status DYNAMIC. When I roll back the plugin with the page rule in place it works fine. Like this
https://www.mydomain.com/* Cache Level:?Cache Everything
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
- This reply was modified 2 months, 3 weeks ago by frenchomatic.
Silly me – I had it set to the wrong mime type and should have been $existing_mimes[‘slave’] = ‘application/zip’;
The second method is interesting if I end up needing to add different mime types to a file extension.
Many thanks for your help and I am sure this post will help others too.
Forum: Plugins
In reply to: [Lord of the Files: Enhanced Upload Security] .bin files with two MIME typesAll is good. Plugin update works perfectly. Hopefully this post will help others if they get an unusual MIME type. they can report it and it can be added. This part of wordpress is actually a mess. Your plugin cleans it up. And thanks.
Forum: Plugins
In reply to: [Lord of the Files: Enhanced Upload Security] .bin files with two MIME typesIt seems I can get it to work if I edit the alias file to include application/x-dosexec
‘bin’=>array(
‘application/gltf-buffer’,
‘application/octet-stream’,
‘application/x-dosexec’,an then in functions.php this
function allow_special_uploads ( $existing_mimes=array() ) {
$existing_mimes[‘slave’] = ‘application/octet-stream’;
$existing_mimes[‘bin’] = ‘application/octet-stream’;
$existing_mimes[‘kess’] = ‘application/zip’;return $existing_mimes;
}
add_filter(‘upload_mimes’, ‘allow_special_uploads’);Hi, Sorry I should have been clearer. In the my-account page orders list page – I can use css but it isn’t a nice way to remove the print button – i.e. I currently do this
.wt_pklist_invoice_print{
display: none!important;
}I would also like to remove the print button from the admin orders list page too.
<a class="button wc-action-button wc-action-button-wf_pklist_print_document wf_pklist_print_document" href="#1218" aria-label="" title=""></a>
Looking to see how this action can removed. Again using css it is possible but not a nice way to do it.
a.button.wc-action-button.wc-action-button-wf_pklist_print_document.wf_pklist_print_document
{
display: none!important;
}The issue is really that it is not possible to turn off print buttons and for most people, a download button is probably enough. People can then print happily afterwards if they wish to. For me my template starts to look crowded with two buttons as I have others doing different things in my application.
- This reply was modified 6 months ago by frenchomatic.
Found a way round this problem by using the general settings page for customer note and company ID.
- This reply was modified 6 months ago by frenchomatic.
Forum: Plugins
In reply to: [WooCommerce] https://stats.wp.com/w.jsI found the issue – settings -> advanced -> woo.com -> uncheck boxes.
Basically, by agreeing to share statistics, that script gets fired but it gives a 404
WordPress 6.4.4 , woocommerce 8.7.0
- Register scripts required to record events from javascript.
*/
public static function register_scripts() {
wp_register_script( ‘woo-tracks’, ‘https://stats.wp.com/w.js’, array( ‘wp-hooks’ ), gmdate( ‘YW’ ), false );
}
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] How do remove this code?Wrong plugin – sorry
- This reply was modified 7 months, 3 weeks ago by frenchomatic.
- This reply was modified 7 months, 3 weeks ago by frenchomatic.
Forum: Plugins
In reply to: [WooCommerce] Search Orders List PageTurns out to be simple if you know the right hook. Hope this helps someone else.
add_filter( 'woocommerce_order_table_search_query_meta_keys', 'woocommerce_shop_order_search_order_total' ); function woocommerce_shop_order_search_order_total( $search_fields ) { $search_fields[] = '_order_total'; $search_fields[] = '_user_id'; $search_fields[] = '_order_number'; $search_fields[] = 'my_additional_field'; return $search_fields; }