• Resolved otheroom

    (@otheroom)


    I’ve been testing Quick Cache on an isolated server with one of the WP sites I run and I’ve been very impressed with its performance. I am wondering though about the number of cache files produced.

    This blog has 6 pages and 240 posts yet after 24 hours QC has created 900+ cache files. I’m using the default duration of 7 days. I understand the there are a number of other “pages” one the site made up of various archive lists and such but I would not have thought that there would be so many cache files.

    Is this normal?

    http://wordpress.org/plugins/quick-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter otheroom

    (@otheroom)

    After six days there are now 2136 cache files. That seems a bit excessive given the limited number of pages and posts on the site.

    Is there something that’s causing duplicate cache files to be created?

    Plugin Author Raam Dev

    (@raamdev)

    @otheroom If you have a lot of tags or categories, also consider all the possible variations of those pages that might be cached. For example, there might be an archive page for each tag (example.com/tag/mytag/) and one for each category (example.com/category/mycategory/). Then you’ll have the paginated pages (example.com/tag/mytag/page1/, etc.).

    I suggest looking at your web server access log to see what URLs are being visited. You might have a web spider or search bot that is indexing your site, following all possible links it finds and thereby generating all the cache files.

    If you discover this is what’s happening, you may want to look into excluding the offending bot using a robots.txt file. You can also exclude certain WordPress theme files from being cached altogether (such as the category or tag archives). See here for more information: https://github.com/WebSharks/Quick-Cache/issues/57#issuecomment-31583251

    Could there be a hard disk or number of cache files limit introduced?
    I’m facing a similar problem and the cache directory grows indefinitely until the host hd allocation is reached whereafter the site breaks.

    Plugin Author Raam Dev

    (@raamdev)

    @kalligator I’m working on a feature called Branched Cache Structure that will change the way cache files are stored on disk. Please follow this GitHub issue for more details: https://github.com/WebSharks/Quick-Cache/issues/3

    Plugin Author Raam Dev

    (@raamdev)

    Hello,

    The latest version of Quick Cache (v140605) introduces a new Branched Cache Structure, in which cache files are stored in subdirectories that match the URL:

    New Feature: Branched Cache Structure. Cache files are now written to the cache directory using a more intuitive format of PROTOCOL/HOSTNAME/PERMALINK (e.g., http/example-com/sample-page.html). For more details, please see https://github.com/WebSharks/Quick-Cache/wiki/Branched-Cache-Structure

    See also: v140605 changelog.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number of cache files’ is closed to new replies.