kieronboz
Forum Replies Created
-
Forum: Plugins
In reply to: [Login as User] WP Rocket cacheAlso seeing this with LS Cache
Forum: Plugins
In reply to: [LiteSpeed Cache] ESI Shortcode Still Caching even with private/low ttlI had to disable Cache Logged-in Users as it was not working – that’s why it’s working OK now I believe.
I will try to add some error outputting next
Forum: Plugins
In reply to: [LiteSpeed Cache] ESI Shortcode Still Caching even with private/low ttlRand did work, which is what im confused on.
Forum: Plugins
In reply to: [LiteSpeed Cache] ESI Shortcode Still Caching even with private/low ttli still can’t make it work reliably
Forum: Plugins
In reply to: [LiteSpeed Cache] ESI Shortcode Still Caching even with private/low ttlHey, I have added the following now
function esi_test_shortcode() {
if (class_exists('WooCommerce')) {
return rand();
}
return '';
}
add_shortcode('esi_test', 'esi_test_shortcode');and then in the footer at the bottom
debug: <?php echo do_shortcode('[esi esi_test ttl="1" cache="private"]'); ?>
on initial glances, that appears to behave better. i am just testing it thoroughly now, but thought id mention it to you quick also
Forum: Plugins
In reply to: [WP Super Cache] Cache timestamp on page is always just ‘now’Hey, no thats ok for now, I havent got too much availability to keep debugging so will just leave it for now, thank you.
Forum: Plugins
In reply to: [WP Fastest Cache] Why does woocommerce order update wipe cache?Ah understood, ok thank you for your help.
Forum: Plugins
In reply to: [WP Fastest Cache] Why does woocommerce order update wipe cache?Hey, these are different events, the first one i asked about is
clear_cache_after_woocommerce_order_status_changed
, this is resolved, using the line in wp-config.
But now i am additionally seeing cache clears for different eventclear_cache_after_woocommerce_update_product
Forum: Plugins
In reply to: [WP Fastest Cache] Why does woocommerce order update wipe cache?That’s fine, but is it possible to disable clear cache on
clear_cache_after_woocommerce_update_product
? this is different to order_status_changed, but seems to trigger when a purchase is made.Forum: Plugins
In reply to: [WP Fastest Cache] Why does woocommerce order update wipe cache?sure but any way to make it not clear cache with that additional event? clear_cache_after_woocommerce_update_product
Forum: Plugins
In reply to: [WP Fastest Cache] Why does woocommerce order update wipe cache?Thank you, I notice when someone orders,
clear_cache_after_woocommerce_update_product
is also triggering (maybe unique to my plugins) – I still want cache to clear when admins update a product, but not when someone orders. hmm.Forum: Plugins
In reply to: [WP Super Cache] Cache timestamp on page is always just ‘now’Hm okay, I have disabled WP-CRON yes – but admittedly the
/?lottery-cron=check
part I have, is for a plugin – I don’t love the implementation but I am at their whim, they advised me to use ‘WP Fastest Cache’ – and just testing it, it doesn’t seem to wipe the cache with the cron jobs on, so I suspect that they have some edge case in their plugin which is making it behave differently, and in turn WPSC is wiping.Their words:
Hi
install wp fastest cache or clearfy and set cache, it seems wp super cache does not remove some comments which are then changed on every request and causing cache regeneration on every request.
regardsI will keep investigating as I much prefer Super cache so far.
I dont think the lockdown mode would be useful, as the site is generally quite dynamic and time dependant, especially for logged in users (which I dont cache for) – but admittedly i dont know _what_ the query crons are activating, for this plugin.Forum: Plugins
In reply to: [WP Super Cache] Cache timestamp on page is always just ‘now’Thanks, I just opened that php file to reveal everything, I can see a lot of this and the problem becomes obvious!
13:21:21 1474019 /?lottery-cron=check wp_cache_post_change: checking /var/www/html/wp-content/cache/meta/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: deleting /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//competition-category/uncategorized/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//competition-category/uncategorized/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: directory does not exist: /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//competition-category/uncategorized/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//competition-category/uncategorized//page
13:21:21 1474019 /?lottery-cron=check prune_super_cache: exiting as file/directory does not exist : /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//competition-category/uncategorized//page
13:21:21 1474019 /?lottery-cron=check wpsc_delete_post_archives: deleting cache of taxonomies: https://blazecompetitions.co.uk/competition-category/uncategorized/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: deleting /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//shop/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//shop/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: directory does not exist: /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//shop/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//shop//page
13:21:21 1474019 /?lottery-cron=check prune_super_cache: exiting as file/directory does not exist : /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//shop//page
13:21:21 1474019 /?lottery-cron=check wpsc_delete_post_archives: deleting cache of post type archive: https://blazecompetitions.co.uk/shop/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: deleting /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//author/blaze/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//author/blaze/
13:21:21 1474019 /?lottery-cron=check wpsc_delete_files: directory does not exist: /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//author/blaze/
13:21:21 1474019 /?lottery-cron=check wpsc_get_realpath: directory does not exist - /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//author/blaze//page
13:21:21 1474019 /?lottery-cron=check prune_super_cache: exiting as file/directory does not exist : /var/www/html/wp-content/cache/supercache/blazecompetitions.co.uk//author/blaze//page
13:21:21 1474019 /?lottery-cron=check wpsc_delete_post_archives: deleting cache of author archive: https://blazecompetitions.co.uk/author/blaze/But, the question is, can I stop WP Super Cache from purging, based on those CURL query string CRON events I have? Also, I can see some double //
blazecompetitions.co.uk//shop//page
every so often, is that indicative of an issue or expected?Thanks so far!
Forum: Plugins
In reply to: [WP Super Cache] Cache timestamp on page is always just ‘now’Thanks, I am looking for the link to view the logs, https://jetpack.com/support/wp-super-cache/enabling-the-debug-mode/ this says find the link that says “Login to the debugger, by clicking this link” – but where should this be?
If I click the line that says “Currently logging to: blah5235235blah.php” it simply downloads a PHP file?
Thanks!
Forum: Plugins
In reply to: [WP Super Cache] Cache timestamp on page is always just ‘now’To clarify, I just visited the homepage now, and the page source has this time (which is now, as of typing):
<!– Dynamic page generated in 0.407 seconds. –><!– Cached page generated by WP-Super-Cache on 2024-07-08 10:04:27 –>
<!– super cache –>