eddr
Forum Replies Created
-
Thanks
- Could you add such an option? Why should the whole CF cache be flushed, that’s far from optimal for a busy site.
- I don’t understand your question.. The whole problem is that the content doesn’t change when trying to flush only one page
Thanks
Yes, the URL actually exists and in use. Its local page cache is flushed by using our simple cide – double checked again.
The CF cache for this page isn’t flushed.
Looking at the “Extension_CloudFlare_Plugin.php” code I see no reference to w3tc_flush_url:
function run() { add_filter( 'w3tc_config_default_values', array( $this, 'w3tc_config_default_values' ) ); add_action( 'wp_set_comment_status', array( $this, 'set_comment_status' ), 1, 2 ); // priority is important, see do_action call of that action add_action( 'w3tc_flush_all', array( $this, 'w3tc_flush_all' ), 3000, 1 ); add_filter( 'w3tc_flush_execute_delayed_operations', array( $this, 'w3tc_flush_execute_delayed_operations' ), 3000, 1 ); $this->fix_remote_addr(); // if page caching is enabled on CF - attach to post modifications // and flush it if ( $this->_config->get_boolean( array( 'cloudflare', 'pagecache' ) ) ) { Util_AttachToActions::flush_posts_on_actions(); add_action( 'w3tc_flush_post', array( $this, 'w3tc_flush_xxx' ), 3000 ); add_action( 'w3tc_flushable_posts', '__return_true', 3000 ); add_action( 'w3tc_flush_posts', array( $this, 'w3tc_flush_xxx' ), 3000 ); } }Please check the code and add a w3tc_flush_url functionality for CF
Looking forward to hearing from youHi
Waiting for an updateThanks
1. Code, no buttons:// Not working:
w3tc_flush_url(‘https://notreallymyweb.site/product-category/coffees/’);or
w3tc_flush_url(‘https://notreallymyweb.site/product-category/coffees’);
// Working:
w3tc_flush_all();2. Evidence: developer tools show HIT as cf-cache-status, please check the screenshot:
And more – when cache is flushed, the page takes few seconds to load instead of 80ms on my end. Also contents don’t change.. and so on.
3. The W3TC cache does get flushed. I see it via the cache folder and ofcourse, the time the category page takes to load.
- This reply was modified 1 year, 5 months ago by eddr.
Thanks for the response
Why do you think the page cache for the product category doesn’t exist?
I double checked again and it exists and works.
And anyway it makes sense to be able to control CF cache via W3TC functions. I see no such function for CF really. Can you refer me to such an API functionality within W3TC to purge specific CF url?
I find it quite important…
ThanksForum: Plugins
In reply to: [Yaad Sarig Payment Gateway For WC] HPOS woocommerce compatibility+1
Same questionForum: Plugins
In reply to: [Action Scheduler] Action Scheduler shows phpcs errors using wpcsThanks
I’ll post my question in the right place, but anyway also here – the thing with the old code for me is that I can’t submit new extension to WC marketplace. How can it work that way..
- This reply was modified 2 years, 10 months ago by eddr.
Forum: Plugins
In reply to: [WP REST Cache] WC Admin rest calls cache ?Thanks
Some info is really repetitive. In general I think WP/WC need better management there, but for the meanwhile, is there a way to enable it anyway?
Out admins use the admin area intensively right when the site is under big sales load, so it makes senseThanks
Would you like an access to the site?
Another issue – when unpublishing a product – i.e. status: published => draft – Sometimes the product continues to be shown on the facebook Page.
More info : The facebook details (on the WP edit page) are not displayed, so no option to delete the product through the WP admin area.
Thanks Igor
- I mean – I don’t want the info to show publicly. Can I send it via a more secured channel to you?
Thanks
Hi
Yes, all of them have a value.
How can I send you details in a secured manner?
Thanks
Forum: Plugins
In reply to: [W3 Total Cache] API/Feature : programmatically define page cache rulesany thoughts?
Forum: Plugins
In reply to: [W3 Total Cache] API/Feature : programmatically define page cache rulesHi and thanks for the detailed response
However, that’s not what I meant.
I already use the cookie group cache and it works, however, not as I descrtibed.If you have two cookie groups: ‘a’ and ‘b’. you won’t have a unique page cached for each combination of these two, only for the first cookie group fetched
Do you see what I mean?