Viewing 12 replies - 1 through 12 (of 12 total)
  • Yes. If it’s not then enable debugging and edit the post again. Check the log..

    Does Super Cache delete all preloaded files when you edit a single page? It seems to be happening for me anyways.

    I got the same problem, after editing a post or page, the wp-content/cache/supercache directory will be cleared completely and not the cached page or post

    It’s not working on my multisite installation unless I have it set it up properly. It’s very annoying because when I create new content it’s not visible to anyone. It’s now four days after I created new pages which are not visible.

    Have you enabled debugging and checked what runs when you edit a page?

    How can I delete the older, outdated versions being stored in WP Super Cache?

    Try the development version, and/or use the debug log and publish a post. Watch the log for the logs of the delete commands and make sure the path to the files is correct.

    https://ocaoimh.ie/y/2o

    Hello, thanks for that great plugin !

    I experience the same problem: when I update a page, the cache is entirely cleared (although the advanced option “Clear all cache files when a post or page is published or updated” is disabled).

    Is it the normal behavior ? It’s inconvenient for me: I wish to use the preload mechanism, but as the cache is cleared when I update a post, it stays almost empty until the next preload, and pages are only cached when requested by visitors.

    If it’s not normal, I can generate a debug log, what is the prefered way to submit it ?

    Best regards,
    Regis.
    (using super cache v1.1 on a WP 3.3.2)

    No, use the debug log in the plugin and see why it does this. Also try the development version.

    https://ocaoimh.ie/y/2o

    Thank you for your answer, Donncha,

    below is an extract from the debug log, when I edit a specific page.

    It seems that no matter what page or article I edit, supercache clears the root of the site (and all pages/articles). Maybe because of my site conf: pages are organized with a static page as “/”, a few main static pages below root, and a lot of child pages under each.
    Articles are in a specific category, with a custom permalink to call them.

    (After the clear, sometimes the pages still appear in the cache list, all bearing the “.needs-rebuild” suffix, and sometimes it seems they have been deleted -maybe by the automatic preload, if it launches at the same time ? – )

    ==> what I would like, is to only clear the edited page / article, and not the folders above (and for the specific page assigned to “/”, only clear that page but not all the site’s content, that is below root).
    Do you have an idea how to achieve that ?

    ==> If possible, it would be great if the new version of the cleared page / article could be automatically pre-loaded. Is it possible with the current design of the plugin ?

    My best regards, thank you for your work and being in the forums,
    Regis.
    (Do you plan on hosting your dev code on a git repo like github ? that would be great).

    —————————————————————

    05:00:52 /wp-admin/post.php Clearing cache for post 537 on post edit.
    05:00:52 /wp-admin/post.php supercache dir: /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/
    05:00:52 /wp-admin/post.php wp_cache_post_id_gc post_id: 537 https://<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires clearing cache in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/.
    05:00:52 /wp-admin/post.php prune_super_cache: wp_cache_rebuild_or_delete( /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/index.html )
    05:00:53 /wp-admin/post.php rebuild_or_gc: rename to /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/index.html.needs-rebuild
    05:00:53 /wp-admin/post.php prune_super_cache: wp_cache_rebuild_or_delete( /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/index.html.gz )
    05:00:53 /wp-admin/post.php rebuild_or_gc: rename to /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires/index.html.gz.needs-rebuild
    05:00:53 /wp-admin/post.php wp_cache_post_id_gc clearing cache in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-de-theatre-paris/horaires//page/.
    05:00:53 /wp-admin/post.php wp_cache_post_id_gc clearing cache in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>//page/.
    05:00:53 /wp-admin/post.php Post change: deleting cache files in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/
    05:00:53 /wp-admin/post.php Post change: deleting page_on_front and page_for_posts pages.
    05:00:53 /wp-admin/post.php Post change: page_on_front 535
    05:00:53 /wp-admin/post.php supercache dir: /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/
    05:00:53 /wp-admin/post.php wp_cache_post_id_gc post_id: 535 https://<HIDDEN_URLNAME>/ clearing cache in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/.
    05:00:53 /wp-admin/post.php wp_cache_post_id_gc clearing cached index files in /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/.
    05:00:53 /wp-admin/post.php prune_super_cache: wp_cache_rebuild_or_delete( /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/contacts/index.html )
    05:00:53 /wp-admin/post.php rebuild_or_gc: rename to /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/contacts/index.html.needs-rebuild
    05:00:53 /wp-admin/post.php prune_super_cache: wp_cache_rebuild_or_delete( /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/contacts/index.html.gz )
    05:00:53 /wp-admin/post.php rebuild_or_gc: rename to /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/contacts/index.html.gz.needs-rebuild
    05:00:53 /wp-admin/post.php gc: could not delete /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/contacts as it’s not empty: index.html.gz.needs-rebuild
    05:00:53 /wp-admin/post.php prune_super_cache: wp_cache_rebuild_or_delete( /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-theatre-enfants-paris/index.html )
    05:00:53 /wp-admin/post.php rebuild_or_gc: rename to /<HIDDEN_PATH>/public_html/<HIDDEN_URLNAME>/wp-content/cache/supercache/<HIDDEN_URLNAME>/cours-theatre-enfants-paris/index.html.needs-rebuild
    (etc.)

    Hello,

    sorry to reactivate this thread, but I still haven’t figured out how to make sure that only the edited page/post gets cleared of the cache, and not all the pages/post.

    Donncha, do you have an idea on this issue ?

    Best regards
    Regis

    Kaliostrozen

    (@kaliostrozen)

    Hi Doncha,

    same thing happening here.

    log output looks exactly as redjv’s

    any ideas?

    best regards and thanks in advance
    kal

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[WP Super Cache] Update cache after edit?’ is closed to new replies.