mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
Remove old caching code from report model
This commit is contained in:
parent
35ec6c6806
commit
38415f28da
1 changed files with 1 additions and 7 deletions
|
@ -1,15 +1,10 @@
|
|||
class Report
|
||||
|
||||
attr_accessor :type, :data, :cache
|
||||
|
||||
def self.cache_expiry
|
||||
3600 # In seconds
|
||||
end
|
||||
attr_accessor :type, :data
|
||||
|
||||
def initialize(type)
|
||||
@type = type
|
||||
@data = nil
|
||||
@cache = true
|
||||
end
|
||||
|
||||
def as_json
|
||||
|
@ -28,7 +23,6 @@ class Report
|
|||
|
||||
# Load the report
|
||||
report = Report.new(type)
|
||||
report.cache = false if opts[:cache] == false
|
||||
send(report_method, report)
|
||||
report
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue