Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10826

QNetworkDiskCache: cacheSize not working well

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.0
    • Network: Cache
    • None
    • Linux, X11

    Description

      QNetworkDiskCache->cacheSize() returned values are different from size of cache directory on disk. Also, some times, both values(measured from disk and from api), are going over the values set with setMaximumCacheSize. This happens in qt 4.6 . Don't know in other versions.

      Log from an application that loads web pages and monitors cache sizes:
      Curent cache size from disk measures: 2698194 bytes
      Curent cache size from api: 2822944 bytes
      Maximum cache size from api: 3000000 bytes

      Curent cache size from disk measures: 2698194 bytes
      Curent cache size from api: 2822944 bytes
      Maximum cache size from api: 3000000 bytes

      Curent cache size from disk measures: 3049610 bytes
      Curent cache size from api: 3022366 bytes
      Maximum cache size from api: 3000000 bytes

      This doesn't happen all the time.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mihaiadrian Mihai Adrian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes