# Jekyll serve to cache elements

**URL:** <https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709>\
**Category:** Help\
**Created:** [June 26, 2017, 4:58pm UTC](https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709 "2017-06-26T16:58:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordan](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Jordan](https://talk.jekyllrb.com/u/Jordan)\
**Post date:** [June 26, 2017, 4:58pm UTC](https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709/1 "2017-06-26T16:58:07Z")

</div>

I have a big project with data files, loads of includes and sass, but my project takes 12-15 seconds to reload is there a way to only get jekyll to cache pages your not working on etc.

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 26, 2017, 8:33pm UTC](https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709/2 "2017-06-26T20:33:40Z")

</div>

Have you tried using incremental builds?

> [**Incremental build**](https://jekyllrb.com/docs/configuration/#build-command-options)

Enable the experimental incremental build feature. Incremental build only re-builds posts and pages that have changed, resulting in significant performance improvements for large sites, but may also break site generation in certain cases.

> `jekyll build --incremental`

---

<div class="post-metadata">

**Author:** ![Jordan](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Jordan](https://talk.jekyllrb.com/u/Jordan)\
**Post date:** [June 27, 2017, 8:08am UTC](https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709/3 "2017-06-27T08:08:44Z")

</div>

Is this instead of Jekyll serve while working on it

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [June 27, 2017, 11:50am UTC](https://talk.jekyllrb.com/t/jekyll-serve-to-cache-elements/709/4 "2017-06-27T11:50:44Z")

</div>

No not exactly. You can use the `--incremental` flag with `jekyll serve` too. Or you can enable it for both `build` and `serve` by adding `incremental: true` to your \_config.yml file.

You may experience strange things using it though. Because of the way it caches files things don’t always behave how you’d expect. If you have a fairly simple site you’ll probably be OK.
