• Resolved nm001

    (@nm001)


    We have a large website with thousands of pages. So we don’t want regular purges.

    Every time I navigate in the admin portal, it seems to purge the cache. See debug log below

    The only real peculiarity about the site is that it uses cloudfront as a CDN so there is an edge server and the admin is on the origin.

    [Sun Aug 10 17:32:44.305538 2025] [php:notice] [pid 414530] [client :52692] [2025-08-10 17:32:44 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/edit.php?post_type=page
    [Sun Aug 10 17:33:11.017743 2025] [php:notice] [pid 414363] [client :14899] [2025-08-10 17:33:11 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/edit.php?post_type=page&paged=2
    [Sun Aug 10 18:18:47.489897 2025] [php:notice] [pid 417972] [client :53088] [2025-08-10 18:18:47 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/edit.php?post_type=page
    [Sun Aug 10 18:32:09.589796 2025] [php:notice] [pid 419143] [client :53258] [2025-08-10 18:32:09 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/edit.php
    [Sun Aug 10 18:32:44.048858 2025] [php:notice] [pid 419191] [client :15675] [2025-08-10 18:32:44 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/admin.php?page=WP-Optimize
    [Sun Aug 10 18:41:06.499520 2025] [php:notice] [pid 419975] [client :53380] [2025-08-10 18:41:06 : INFO] – Full Cache Purge triggered by: WPO_Page_Cache::maybe_update_advanced_cache \n, referer: /wp-admin/plugins.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nm001

    (@nm001)

    Just to clarify

    1. just logging into the website wp-admin triggers a purge. Definitely has been working cos there were 5000+ posts purged. Any navigation in admin whatsoever triggers purge.
    I looked at this page on your site, and I was not doing any of these activities to purge.

    2. the cache is for the public cloudfront site, so has the ‘public’ url. The name of the wpo-cache directory where it stores it is the ‘public’ url. The admin installation uses an ‘origin’ url. This Cloudfront detail might be entirely irrelevant.

    Thread Starter nm001

    (@nm001)

    I found a solution, although it requires an edit on each plugin update.

    The Cloudfront dual site url issue was the cause.

    in cache/class-wpo-page-cache.php

    there is a section that detects site changes
    I commented out these lines:

              if ($is_the_site_url_or_folder_changed) {
                      $is_cache_purged = $this->purge();
                      if ($is_cache_purged) $this->file_log("Full Cache Purge triggered by: ". __METHOD__);
              }
    
              if (!$this->write_advanced_cache()) {
                      add_action('admin_notices', array($this, 'notice_advanced_cache_autoupdate_error'));
              } else {
                      $this->update_cache_config();
              }


    Thread Starter nm001

    (@nm001)

    Now the cache doesn’t get totally purged
    But when a new story is posted, there’s no partial purge either.

    Plugin Support Damilare

    (@deabiodun)

    Hi @nm001!
    Please accept my apologies for the delayed response.

    To help with investigating this, please check the advanced-cache.php file in the wp-content directory of your site files. Send us what you have in line 5 that starts with:
    // WP-Optimize advanced-cache.php (written…

    In the meantime, we will also run some checks on our end.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unwanted regular purges happening’ is closed to new replies.