Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-63062

Sometimes the cache managed by gradle-plugins-cache is unnecessarily regenerated

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 7.0.0 Beta 7
    • 7.0.0 Beta 7
    • Dev Tools
    • None

    Description

      Sometimes the .task-cache is regenerated every time because the Gradle plugin compares the timestamp of the .task-cache dir (recursively) with the timestamp of test files (build.gradle and others). The idea is that, if one of those files is newer than the cache, the cache has to be regenerated.

      But there is a problem: not always a change in those test files causes a change in the cached file (for example, a typo in build.gradle), and so we have a situation where the test files are always newer than the cache, and there is no way to update the cache, because there is nothing to update.

      Attachments

        Activity

          People

            andrea.digiorgi Andrea Di Giorgi (Inactive)
            andrea.digiorgi Andrea Di Giorgi (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 34 weeks, 4 days ago

              Packages

                Version Package
                7.0.0 Beta 7