kinansy
Forum Replies Created
-
but am i correct that it would be slightly better for performance instead of adding that to each URL
i can see workers limits here
https://developers.cloudflare.com/workers/platform/limits
what will happen if we reach that limit ? get Cloudflare 1015 error page ?
it is ok to receive that error but the most important is not stop the worker and start caching the logged in usersthanks for your quick answer. i know it is by default just wanted to understand how.
so is it slightly better for performance to use worker mode instead of inserting that buster in every generated URL ?
while reading FAQ, i see that plugin will add swcfpc=1 to each link of logged in users.
in Prevent the following URIs to be cached, i can see
*ao_speedup_cachebuster*is this how you exclude the logged in users ?
Forum: Plugins
In reply to: [Super Page Cache] exclude logged in users and static cachePlease i understand that out of the box logged in users are excluded from (cache everything). But my question is:
does this exclusion affect their static cache too?Forum: Plugins
In reply to: [Super Page Cache] exclude logged in users and static cacheso while excluding logged in users from the cache everything, will they still benefit from the cached static assets on CF?
Because by default all will benefit from the static cache on CFTested this on my site. it works
add_filter( ‘woocommerce_payment_complete_order_status’, ‘auto_complete_virtual_orders’, 10, 3 );
function auto_complete_virtual_orders( $payment_complete_status, $order_id, $order ) {
$current_status = $order->get_status();
// We only want to update the status to ‘completed’ if it’s coming from one of the following statuses:
$allowed_current_statuses = array( ‘on-hold’, ‘pending’, ‘failed’ );if ( ‘processing’ === $payment_complete_status && in_array( $current_status, $allowed_current_statuses ) ) {
$order_items = $order->get_items();
// Create an array of products in the order
$order_products = array_filter( array_map( function( $item ) {
// Get associated product for each line item
return $item->get_product();
}, $order_items ), function( $product ) {
// Remove non-products
return !! $product;
} );if ( count( $order_products > 0 ) ) {
// Check if each product is ‘virtual’
$is_virtual_order = array_reduce( $order_products, function( $virtual_order_so_far, $product ) {
return $virtual_order_so_far && $product->is_virtual();
}, true );if ( $is_virtual_order ) {
$payment_complete_status = ‘completed’;
}
}}
return $payment_complete_status;
}`
`Forum: Plugins
In reply to: dashboard -Profile settings redirect to BB-profile settingsThis will remove the settings tab from you dashboard
add_filter('tutor_dashboard/bottom_nav_items', 'remove_some_links'); function remove_some_links($links) { unset($links['settings']); return $links; }
then you need to remove the notification that asks to complete profile:
Tutor – settings – general/ profile completion: uncheck.