When does cached content automatically disappear?

Cached content disappears in two ways:
1. Expiration set by the social media platform: Some content expires in minutes or hours, while others, like profile pictures, may last a year.
2. Storage limits: Phones have limited storage. If the cache becomes too large, the app deletes the oldest or least-used content automatically.