PHPackages                             corepulse/static-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. corepulse/static-cache

AbandonedPimcore-bundle[Caching](/categories/caching)

corepulse/static-cache
======================

corepulse static cache

0.0.1(2y ago)05GPL-3.0+PHP

Since Jun 27Pushed 2y agoCompare

[ Source](https://github.com/starfruit-php/corepulse-cache)[ Packagist](https://packagist.org/packages/corepulse/static-cache)[ RSS](/packages/corepulse-static-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Corepulse Cache
===============

[](#corepulse-cache)

Getting started
---------------

[](#getting-started)

Clone source and rename folder to {project}/bundles/CorepulseCacheBundle

Config
------

[](#config)

Update file `composer.json` and run `composer dump-autoload`:

```
"autoload": {
    "psr-4": {
      ...
      "CorepulseCacheBundle\\": "bundles/CorepulseCacheBundle/src",

    }
  },

```

Update file `config/config.yaml`:

```
pimcore:
    bundles:
        search_paths:
        	...
            - bundles/CorepulseCacheBundle

```

```
framework:
    messenger:
        transports:
            async: "%env(MESSENGER_TRANSPORT_DSN)%" # Xử lý tin không đồng bộ
            sync: 'sync://' # Xử lý tin nhắn đồng bộ

```

Update `.env`:

```
MESSENGER_TRANSPORT_DSN=doctrine://default
COPULSECACHE_TRANSPORT_NAME=sync
COPULSECACHE_CDN=https://khanhtest.b-cdn.net
COPULSECACHE_OLD_DOMAIN=

```

Update file `config/bundles.php`:

```
return [
	...
	CorepulseCacheBundle\CorepulseCacheBundle::class => ['all' => true],
]

```

Installation
------------

[](#installation)

run command:

```
./bin/console pimcore:bundle:install CorepulseCacheBundle

```

Documentation
-------------

[](#documentation)

Use class:

```
use CorepulseCacheBundle\Cache;
...

    public function indexAction(Cache $cache):
    {
      ...
    }

```

- string $url : url của trang cache.
- string $view : nội dung trả về của url.
- array $tags: nhãn của cache.
- string $type: loại file cache (`html` hoặc `json`).

```
	//Tạo cache theo url
	$cache->create($url, $view, $tags, $type);

	// tạo lại cache theo tags
	$cache->createByTags($tags);

	// xóa cache theo tags
	$cache->clearByTags($tags);

	// xóa cache
	$cache->clearAll();

```

Update Nginx:
-------------

[](#update-nginx)

```
map $args ${project}_static_page_root {
    default                                 /var/tmp/cpcache;
    "~*(^|&)pimcore_editmode=true(&|$)"     /var/nonexistent;
    "~*(^|&)pimcore_preview=true(&|$)"      /var/nonexistent;
    "~*(^|&)pimcore_version=[^&]+(&|$)"     /var/nonexistent;
    "~*(^|&)cms_editmode=true(&|$)"     /var/nonexistent;
}

map $uri ${project}_static_page_uri {
    default                                 $uri;
    "/"                                     "";
}

```

```
server {
    ...

     location / {
        error_page 404 /meta/404;

        try_files ${project}_static_page_root${project}_static_page_uri/index.html $uri /index.php$is_args$args;
    }

    ...
}

```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

737d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13907561?v=4)[Starfruit](/maintainers/Starfruit)[@starfruit](https://github.com/starfruit)

---

Top Contributors

[![hoanganhnguyen98](https://avatars.githubusercontent.com/u/38321860?v=4)](https://github.com/hoanganhnguyen98 "hoanganhnguyen98 (2 commits)")

### Embed Badge

![Health badge](/badges/corepulse-static-cache/health.svg)

```
[![Health](https://phpackages.com/badges/corepulse-static-cache/health.svg)](https://phpackages.com/packages/corepulse-static-cache)
```

###  Alternatives

[pimcore/data-hub

Pimcore Datahub

1361.4M12](/packages/pimcore-data-hub)[pimcore/skeleton

126200.6k](/packages/pimcore-skeleton)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[pimcore/studio-ui-bundle

Pimcore Studio Ui Bundle

29118.5k19](/packages/pimcore-studio-ui-bundle)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20203.9k22](/packages/pimcore-studio-backend-bundle)[pimcore/admin-ui-classic-bundle

171.2M57](/packages/pimcore-admin-ui-classic-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
