Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] How many pages can be cached?

  • Resolved niska


    I have a site with about 40000 static pages. Can W3TC handle this, and what are the recommended settings?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Frederick Townes


    Yes, recommended settings depend on your server/plugins/themes/use cases, the general settings tab tries to segment caching engines based on hosting scenario as you can see with the option group labels.


    Be aware that if you use disk extended page caching and your permalink structure is flat (example: %postname-%postid) you can only cache 32k posts at one time since directories can only have 32k subfolders.

    I have too many pages problem too. I’m creating SEO web base and I’ve generated several thousands pages. I’ve also created “page cloud” plugin to display in widget 25 random page links and I get error in this widget:
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes)
    Is there any solution for this issue appart from reducing pages amount?

    Maybe increasing the memory limit will help:

    According to your error message, you have 128MB (=134217728 bytes) allocated and they’re all exhausted. So, try increasing the memory limit to 256MB.

    I don’t think increasing the memory limit can help, now i have about 10000 pages, my target is 150000 pages so if I increase memory limit twice it wont help much.
    I’ve fount that this piece of code generates the error:

    for($i=0; $i<count($pages); $i++) {
        $page = get_page($pages[$i]);
        if($page->post_status == 'publish' && $page->post_name != 'tag' && $page->post_name != 'strony')
            $pages_published[] = $page->ID;

    Maybe there is a way to free memory during script execution, I’ve tried:
    unset($page) and $page=null at the end of for loop, but it not works.

    Plugin Author Frederick Townes


    The latest release of W3TC uses far less memory which will reduce execution time quite a bit among lots of other benefits.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: W3 Total Cache] How many pages can be cached?’ is closed to new replies.