Skip to content

Commit 4f423f6

Browse files
authoredFeb 27, 2025
Merge pull request #325 from ImMin5/master
Recover unified cost cache
2 parents feb37f9 + 6a01a04 commit 4f423f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎src/spaceone/cost_analysis/manager/unified_cost_manager.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ def analyze_yearly_unified_costs(self, query, target="SECONDARY_PREFERRED"):
7878

7979
return self.unified_cost_model.analyze(**query)
8080

81-
@cache.cacheable(
82-
key="cost-analysis:analyze-unified-costs:yearly:{domain_id}:{query_hash}",
83-
expire=3600 * 24,
84-
)
81+
# @cache.cacheable(
82+
# key="cost-analysis:analyze-unified-costs:yearly:{domain_id}:{query_hash}",
83+
# expire=3600 * 24,
84+
# )
8585
def analyze_unified_yearly_costs_with_cache(
8686
self, query: dict, query_hash: str, domain_id: str
8787
) -> dict:
8888
return self.analyze_unified_costs(query)
8989

90-
@cache.cacheable(
91-
key="cost-analysis:analyze-unified-costs:monthly:{domain_id}:{query_hash}",
92-
expire=3600 * 24,
93-
)
90+
# @cache.cacheable(
91+
# key="cost-analysis:analyze-unified-costs:monthly:{domain_id}:{query_hash}",
92+
# expire=3600 * 24,
93+
# )
9494
def analyze_unified_monthly_costs_with_cache(
9595
self, query: dict, query_hash: str, domain_id: str
9696
) -> dict:

0 commit comments

Comments
 (0)