WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] How many pages can be cached? (7 posts)

  1. niska
    Member
    Posted 3 years ago #

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. ironmanjakarta
    Member
    Posted 3 years ago #

    @niska

    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.

  4. partyzant
    Member
    Posted 3 years ago #

    Hi,
    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?

  5. tgeorge
    Member
    Posted 3 years ago #

    Maybe increasing the memory limit will help:

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

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

  6. partyzant
    Member
    Posted 3 years ago #

    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.

  7. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic