WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Fails to delete all cache (3 posts)

  1. DrLightman
    Member
    Posted 7 months ago #

    I've a plugin that maps some macro categories to subdomains in permalinks, like this:

    http://www.example.org/permalink-to-article
    http://cat1.example.org/permalink-to-article2
    http://cat2.example.org/permalink-to-article3
    ...

    wp-super-cache manages to cache them and under wp-content/cache/supercache/ they appear as directories with cached article files inside

    wp-content/cache/supercache/www.example.org/*
    wp-content/cache/supercache/cat1.example.org/*
    wp-content/cache/supercache/cat2.example.org/*

    But when I hit the "Clear cache" button, only the files inside http://www.example.org get deleted.

    http://wordpress.org/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 7 months ago #

    Unfortunately you'll have to clear those cached files yourself. There's no way for the plugin to know about those hostnames, sorry.

  3. DrLightman
    Member
    Posted 7 months ago #

    Ok I'll figure something out, thank you for the reply.

    Maybe if you plan to add some custom hooks in the future, such as "wpsc_before_delete" or "wpsc_after_delete" or similar with parameters the cache folder, it would be great for such hacks ;)

Reply

You must log in to post.

About this Plugin

About this Topic