Parsed syntax cache save location

Aleix Pol aleixpol at kde.org
Wed Apr 22 12:24:09 BST 2015


On Wed, Apr 22, 2015 at 11:57 AM, Aleksey Midenkov <midenok at gmail.com> wrote:
> Where KDevelop stores cache of parsed sources? Why it doesn't store it
> in project location (.kdev4)? I noticed that it reparses project after
> some time passed which makes me believe that it does cache aging.
> Anyway, the best choice is to store cache into .kdev4 with infinite
> lifetime, because: 1. parsing of long project takes about an hour and
> 2. there is no need to keep cache of deleted projects. Is it possible
> to set this in configuration?
> _______________________________________________
> KDevelop mailing list
> KDevelop at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop

It's stored in ~/.cache/kdevduchain/ by default, or whatever XDG cache
directory is specified.

You don't want to have it in project/.kdev4/* because:
- It's not a per-project cache, but per-session.
- many people use distributed file systems, if it's not with the
cache, the system struggles to keep updating the cache through the
network and the experience is terrible.

Aleix



More information about the KDevelop mailing list