• Resolved gielvandam

    (@gielvandam)


    I have three differt sites. All with the same versions of wordpress and wp-super-cache. Only one (the smallest) gives the problem. http://www.theaterbureauspot.nl

    On the menu Settings > WP Super Cache Manager > Cache Contents is the text:
    “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2159 bytes) in /home/theaterbureauspot.nl/www/wordpress/wp-content/plugins/wp-super-cache/wp-cache.php on line 1100”

    I read in this formu that I have to set php_value memory_limit.
    But the maximum i can set with my provider is 32 MB. And Super Cache asks for more then 33,5 MB.

    First question: Why does Supe Cache needs so much?
    Second Question: Why is this not the problem at ww.gielvandam.nl also it is greater site?
    Third question: What is the sollotion?

    Thanks a lot,
    Giel van Dam

Viewing 7 replies - 1 through 7 (of 7 total)
  • Super Cache is asking for 33 meg 33554432 is the correct value of 32 MB, super cache just asked for any amount over that and you server refused. Other plugins also use memory so if there are plugins that you don’t need you should deactivate them.

    Try setting the constant WP_MEMORY_LIMIT to 64M in wp-config.php, that should help!

    Thread Starter gielvandam

    (@gielvandam)

    It is a pitty.
    I am not allowed to set the limit to 64M.
    32M is the maximum.
    And that doesn’t help.
    Where is all this memory used for.
    Cann’t i shrink the ammount the plug-in needs?

    It’s used to read the files in your cache directory. Unfortunately you’ve got a lot of files in there probably. Can you delete them manually through ftp?

    Thread Starter gielvandam

    (@gielvandam)

    I deleted the files in the cache directory through ftp but it doesn’t help.
    Still the same problem.

    My eye was catched by something else. Perhaps it has something to do with this item.
    Whem i go to the source of the page i see the first time:
    <!– Dynamic Page Served (once) in 0.365 seconds –>
    After refresh
    <!– Dynamic Page Served (once) in 0.365 seconds –>
    <!– Cached page served by WP-Super-Cache –>
    But i expect that when i go to an other computer it wil serve the cached file. But that is not so. First the dynamic and after refresh the cached file.

    Thread Starter gielvandam

    (@gielvandam)

    Something more.
    I did everything automaticaly BUT there are differencis between my .htaccess and the text you present by “mod_rewrite rules”
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*

    The howle file:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>
    # END WPSuperCache
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Thread Starter gielvandam

    (@gielvandam)

    Dear Donccha,

    The ne version of super cache solved the problem.
    so I don’t know what changed but it works fine.
    Thnaks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP Super Cache] Allowed memory size exhausted’ is closed to new replies.