Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Cache

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 4142 Views
  • osan
    Avatar
    Community Member
    2 Posts

    Cache Link to this post

    Hi. I've just installed Silverstripe for the first time.

    Before I knew that I had to up the PHP memory_limit to 32M, I fiddled a bit with the main.php file in sapphire directory. I inserted the suggested line to up the memory size there to 80MB. After I realized my error, I configured php.ini to use 32MB instead of the default 16MB and deleted the mem line from main.php. But I still get the error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4980736 bytes) in /tmp/silverstripe-cache-var-www-silverstripe2/cache.php on line 4.

    Clearly there is something stored somewhere from when I had a bigger mem size in main.php.

    I tried to delete the cache.php but that didn't help as it's recreated the next time I open the "silverstripe2/home/successfullyinstalled?flush=1" address. I even rebooted my server to see if it would help. But no. How can I make SilverStripe understand it should use the default 32MB size instead of that 50MB it got from somewhere?

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Cache Link to this post

    "Allowed memory size of 33554432 bytes exhausted"

    33554432 bytes == 32 MB

    "tried to allocate 4980736 bytes"

    4980736 bytes == 4.75 MB

    It's not using 50 MB anywhere, though you may want to increase you limit as it appears that 32 MB isn't enough for the function you're running.

  • osan
    Avatar
    Community Member
    2 Posts

    Re: Cache Link to this post

    Thank you for pointing out my error. Now SilverStripe works perfectly. I like it a lot !

    4142 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.