Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Also seeing this with LS Cache

    Thread Starter kieronboz

    (@kieronboz)

    I 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

    Thread Starter kieronboz

    (@kieronboz)

    Rand did work, which is what im confused on.

    Thread Starter kieronboz

    (@kieronboz)

    i still can’t make it work reliably

    Thread Starter kieronboz

    (@kieronboz)

    Hey, 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

    Thread Starter kieronboz

    (@kieronboz)

    Hey, no thats ok for now, I havent got too much availability to keep debugging so will just leave it for now, thank you.

    Thread Starter kieronboz

    (@kieronboz)

    Ah understood, ok thank you for your help.

    Thread Starter kieronboz

    (@kieronboz)

    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 event clear_cache_after_woocommerce_update_product

    Thread Starter kieronboz

    (@kieronboz)

    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.

    Thread Starter kieronboz

    (@kieronboz)

    sure but any way to make it not clear cache with that additional event? clear_cache_after_woocommerce_update_product

    Thread Starter kieronboz

    (@kieronboz)

    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.

    Thread Starter kieronboz

    (@kieronboz)

    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.

    regards

    I 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.

    Thread Starter kieronboz

    (@kieronboz)

    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!

    Thread Starter kieronboz

    (@kieronboz)

    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!

    Thread Starter kieronboz

    (@kieronboz)

    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 –>

Viewing 15 replies - 1 through 15 (of 33 total)