helpdavfs2 - Support: sr #108111, Is there a way to disable the...


sr #108111: Is there a way to disable the cache?

Submitted by:  Cristian <internaut19>
Submitted on:  Sat 18 Aug 2012 03:26:29 AM UTC  
Votes:  50  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Open/Closed:  Closed Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 03 Jun 2014 11:15:50 PM UTC, comment #4:

Yes, our need is the same as expressed in sr #108588. The minute+ delay in accessing a large file is caused entirely by copying the file twice: once to the cache directory, and another time to the final location. If we eliminate the intermediary copy then we solve the delay problem entirely.

I understand that you must copy locally for read/write filesystems, but I fail to see any need for caching when it's a read-only mount.

Jo Rhett <jorhett>
Tue 03 Jun 2014 08:13:19 PM UTC, comment #3:

I don't understand why you think caching is only for read/write and not for read-only requests. Whatever you want to access, it has to be downloaded from the server first. Having it already on the local hard disk can improve response time significantly. While whether the downloaded content is additionally stored on a local disk does not make much difference.

But it might help if I knew why you want to disable caching. What is the real problem?

Maybe it is the same as in sr #108588.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Mon 02 Jun 2014 10:09:38 PM UTC, comment #2:

This requirement only exists for read/write filesystems. For read-only access to an application's data provided by Webdav, this isn't necessary and it slows down access significantly. Please consider an option to disable caching when a mount is read only.

Jo Rhett <jorhett>
Sun 19 Aug 2012 08:04:54 PM UTC, comment #1:


When you open a file davfs2 must store it locally until it is closed again. From the basic design of davfs2 there is no way around.

You can try to minimize the use of the cache by reducing the cache size or by setting 'delay_upload 0'. Both may slow down the file system significantly.

Commenting out options only means to use the default values.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Sat 18 Aug 2012 03:26:29 AM UTC, original submission:

I searched for a way to disable the davfs cache but couldn't find one so thought that I ask my question here.

I tried to set the cache size to different values including 0 but no go. I also tried to comment out the cache options in the config file but still no go ...

If there is anything else that I can try, please let me know.


Cristian <internaut19>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jorhett (Posted a comment)
  • -email is unavailable- added by jorhett (Voted in favor of this item)
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by internaut19 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 50 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Tue 03 Jun 2014 08:14:58 PM UTC wbaumann StatusIn Progress => Done
    Tue 03 Jun 2014 08:13:19 PM UTC wbaumann StatusDone => In Progress
    Mon 02 Jun 2014 10:09:38 PM UTC jorhett Carbon-Copy- => Added jorhett
    Tue 22 Apr 2014 07:46:12 PM UTC wbaumann Open/ClosedOpen => Closed
    Sun 19 Aug 2012 08:04:54 PM UTC wbaumann StatusNone => Done
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.1-cleanup1