There is a website made in Joomla 2.5.x. It has System Cache enabled. The website contains a component called com_magic that handles URLS like:
System Cache timeout is set globally to 7 days. But the problem is with latest view. Each day a cron job fetched data from bike provider endpoint. It checks if there are new bikes. And if yes, it adds them to the database.
Unfortunately since system cache is set to 7 days, if a new bike occurs, the latest url does not display new bikes until the cache gets invalidated.
The cache for both page and component com_magic should be therefore cleared:
- Each day or
- When new bike becomes available
- How to clear cache for above URL both for page cache and com_magic component cache programatically? Or:
- How to change cache timeout for page and com_magic component for this URL to 1 day specifically? Or:
- How to disable caching for this particular URL for page and com_magic component?
Important note: This is a question about backend Joomla cache. NOT about browser cache!