> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Architecture for the Update All Timestamps endpoint

## Purpose

Refreshes timestamps on all AI website pages and AI articles. This keeps content appearing fresh to search engines and AI crawlers.

## Architecture

```mermaid theme={null}
flowchart TD
    Request["POST /api/cron/update-all-timestamps"]
    
    subgraph orchestrator [Mini Orchestrator]
        UpdateCore["Update core files"]
        UpdateArticles["Update AI articles"]
        CollectFiles["Collect all files"]
    end
    
    subgraph files [Files Updated]
        LLMs["llms.txt"]
        Data["data.json"]
        Config["next.config.js"]
        Articles["AI article HTML"]
    end
    
    Request --> UpdateCore
    UpdateCore --> LLMs
    UpdateCore --> Data
    UpdateCore --> Config
    Request --> UpdateArticles
    UpdateArticles --> Articles
    LLMs --> CollectFiles
    Data --> CollectFiles
    Config --> CollectFiles
    Articles --> CollectFiles
    CollectFiles --> Response
```

## What Gets Updated

### Core Files

| File             | Update                  |
| ---------------- | ----------------------- |
| `llms.txt`       | Last-Modified header    |
| `data.json`      | Updated timestamp field |
| `next.config.js` | HTTP cache headers      |

### AI Articles

| Element                        | Update       |
| ------------------------------ | ------------ |
| `<meta article:modified_time>` | Current date |
| Year in titles                 | Current year |
| Footer text                    | Current year |

## Response Format

```json theme={null}
{
  "status": "success",
  "core_files_updated": 3,
  "pages_updated": 15,
  "pages_failed": 0,
  "files": [...],
  "project_name": "business-abc123",
  "ai_site_url": "https://business.searchcompany.dev",
  "updated_paths": ["/topic-1/", "/topic-2/", ...]
}
```

## Code Location

```
src/app/apis/cron/update_boosted_timestamps/
├── routes.py           # HTTP endpoint
├── mini_orchestrator.py # Main orchestrator
├── core_files.py       # Core file updates
└── helpers.py          # Timestamp utilities
```

<Note>
  This endpoint returns files but does NOT deploy. Call `deploy-to-vercel` separately with the returned files.
</Note>
