Skip to content

Cache table (i.e. irstats2_cache_downloads) problems if "default_range" is specified (i.e. 1y) #71

Description

@eniocarboni

If we set $c->{irstats2}->{default_range} like '1y', so we put a definite value, the download statistic with date range = "all" (_ALL_) use the cache table irstats2_cache_* although this summarizes the data of the "default_range" and not the entire statistics.

The problem, i think, is in Stat::Data on "sub select" on condition in line 133.
To mitigate the problem I commented lines from 133 to 139.
In this way no longer use the cache table but would be useful to find an alternative solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions