Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Flush very slow - how can I speed it up?


Go to End


5 Posts   822 Views

Avatar
jcop007

Community Member, 7 Posts

8 December 2016 at 3:03pm

Edited: 09/12/2016 8:30am

I'm running SilverStripe on Wamp on Windows 10 and it's taking 3 minutes to do a flush. Any ideas on how I can speed that up?
The computer has 16gb of memory, 2.5GHx cpu and a solid state drive so hardware should be an issue.
I notice that Apache runs at about 30-40% of CPU time during the flush.

We're using SilverStripe 3.4. The same project on MAMP on my colleagues machine takes 3-4 seconds to flush.

Thanks,
Jonathan

Avatar
martimiz

Forum Moderator, 1391 Posts

9 December 2016 at 2:44am

I'm using MAMP on Mac, so I do not know WAMP. Also of course I don't know your code. But one thing I've noticed is that, using the CMS, (in my case) FireFox keeps eating memory and can get very slow with SilverStripe flush, dev/build or even saving pages after a while. I never realized that before, but now I regulary restart the browser - hughe difference... :)

This may not have anything to do with your problem but I just thought I'd mention...

Avatar
jcop007

Community Member, 7 Posts

10 December 2016 at 6:38am

Hi
I've found that it's related to the node_modules directory. If I remove that, just as a test, it will flush in under 30 seconds.
The node modules_directory is a subdirectory of the module we're using. Question is,can we exclude this directory from the cache so it doesn't get flushed?
Thanks,
Jonathan

Avatar
martimiz

Forum Moderator, 1391 Posts

10 December 2016 at 8:10am

I don't know what's in that directory, bust try adding a blank _manifest_exclude file to it, flush, and see if it helps - and still works? You may have to manually load classes, but you'll find that out soon enough... :)

Avatar
jcop007

Community Member, 7 Posts

10 December 2016 at 3:25pm

That fixed it. Thanks martimiz. Down to 13 seconds which is a lot more reasonable :)