> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# postJsCacheGenerationTask

APISummary
Start a sub-thread task to generate the `js code cache` of the current template.

## Syntax

### Android

```java
public void postJsCacheGenerationTask(String bytecodeSourceUrl, boolean useV8);
```

#### Parameters

- `bytecodeSourceUrl`: The `url` of the current template.
- `useV8`: Whether to generate `V8 Code Cache`, otherwise generate `QuickJS Code Cache`.

### iOS

```objc
- (void)postJsCacheGenerationTask:(nonnull NSString *)bytecodeSourceUrl;
```

#### Parameters

- `bytecodeSourceUrl`: The source url of the template.

### Harmony

```typescript
public postJsCacheGenerationTask(bytecodeSourceUrl: string, useV8: boolean): void;
```

#### Parameters

- `bytecodeSourceUrl`: The url of the current template.
- `useV8`: Whether to generate V8 Code Cache, otherwise generate QuickJS Code Cache.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.template-bundle.post-js-cache-generation-task`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-bundle/post-js-cache-generation-task.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| post-js-cache-generation-task | Yes (2.8) | Yes (3.4) | Yes (2.8) | No | No | No |

**`post-js-cache-generation-task`**

Start a sub-thread task to generate the js code cache of the current template.

**Specifications:**

