Parsed syntax cache save location

Aleksey Midenkov midenok at
Wed Apr 22 22:53:17 BST 2015

On Wed, Apr 22, 2015 at 2:24 PM, Aleix Pol <aleixpol at> wrote:
> On Wed, Apr 22, 2015 at 11:57 AM, Aleksey Midenkov <midenok at> 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
> 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

So, if project is closed in session, it's cache is deleted? That's
another problem because multiple 200Mb-code projects don't fit into
one session. So I forced to create new session for each new project.
It is good to turn off 'session' concept in this case. And keep cache
with the project.

More information about the KDevelop mailing list