Forum Settings
Forums
New
Jun 3, 2:55 PM
#1
Offline
Nov 2017
6
Hello :)

I have just started on an app with a twist on anime discovery that i really enjoy working on. One thing for this app is that im aiming for a responsive user experience. Before I proceed with implementing a key part of its data handling, I want to check that my proposed caching strategy is alright and compliant with the API Terms of Service.

My proposed caching strategy is as follows:

1) Real-time Caching: When my app fetches anime details from the MAL API (e.g., for personalized recommendations or based on user activity), these details would be cached in my app's database.

2) Cache Usage: This cache would be used to serve subsequent requests for the same anime, provided the cached data is less than 24 hours old.

3) Data Refresh: If data is older than 24 hours or not present in the cache, my app makes a fresh API call to MAL to get the latest details. This fresh data then updates the cache entry along with a new timestamp.

4) Background Sync (Cron Job Plan): To support this system and keep frequently accessed/relevant anime data fresh, a daily Cron job would also run. This job would pre-cache or refresh details for certain anime (top 500), always respecting the same 24-hour freshness rule before making any calls to the MAL API for updates.

My goalwith this approach is purely to enhance performance, ensure a snappy UI for users, and reduce redundant API calls for recently fetched data – not to create an offline substitute for MAL's services (not allowed in TOS). I'm committed to ensuring data displayed to users is reasonably up-to-date.

Does this approach, including the real-time caching, the 24-hour refresh cycle before re-fetching from MAL, and the planned daily Cron job for maintenance, seem generally compliant with the API Agreement, especially concerning data freshness and the use of cached data?

Appreciate any guidance you can offer!
Reply Disabled for Non-Club Members
Jun 4, 7:41 AM
#2
四十二

Offline
Mar 2016
488
It sounds like a great plan.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Kieed & 1041uuu
Jun 5, 2:14 AM
#3
Offline
Nov 2017
6
Reply to ZeroCrystal
It sounds like a great plan.
@ZeroCrystal thank you! Really appreciate the quick reply :)
Jun 8, 11:19 AM
#4
Offline
Jun 2025
1
Reply to Jakuten
@ZeroCrystal thank you! Really appreciate the quick reply :)
@Jakuten Did you contact MAL to get permission?
Jun 8, 11:30 AM
#5
Offline
Nov 2017
6
Reply to kirbymisa
@Jakuten Did you contact MAL to get permission?
@kirbymisa Not yet, I still haven't done much more work on my project and need to research a bit on how to make it work. Before using it I intend to double check directly, but I'll wait untill I'm closer to actually having something as I might have additional questions to ask as well :)
Reply Disabled for Non-Club Members

More topics from this board

» I built a spotify-styled 'MyAnimeList Wrapped' for a yearly review of your anime and manga

XAvishkar - Dec 14

1 by Joeliazeers »»
Dec 17, 1:01 PM

» [Repost] list of all relation_type and media_type.

Mr_UnknownOtaku - Dec 8

4 by -DxP- »»
Dec 12, 8:43 AM

» How to get author name?

EdibleMuffin - Feb 12

4 by XAvishkar »»
Dec 8, 9:52 AM

» 401 Unauthorized when doing authorization flow

Konng_ - Nov 16

2 by Konng_ »»
Nov 28, 3:24 PM

» [discontinued] I made a webapp to compare plan-to-watch lists

daux - Apr 16, 2022

33 by daux »»
Oct 2, 4:17 PM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login