Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 7 additions & 34 deletions .github/workflows/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,41 +47,14 @@ jobs:
env:
XDEBUG_MODE: coverage
- name: Upload coverage to Codecov
if: matrix.php == '83' && matrix.typo3 == '14'
uses: codecov/codecov-action@v5.5.3
if: ${{ matrix.php == '83' && matrix.typo3 == '14' && env.CODECOV_TOKEN != '' }}
uses: codecov/codecov-action@v5
continue-on-error: true
with:
files: coverage.xml
fail_ci_if_error: false
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Save result
if: always()
run: |
mkdir -p summary
echo "PHP=${{ matrix.php }} TYPO3=${{ matrix.typo3 }} RESULT=${{ job.status }}" \
>> summary/results.txt
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ steps.composer-name.outputs.name }}-${{ matrix.typo3 }}-${{ matrix.php }}
path: summary/results.txt
summary:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- uses: actions/checkout@v4
- name: Get composer project name
id: composer-name
run: echo "name=$(python3 -c "import json; d=json.load(open('composer.json')); print(d['name'].replace('/', '-'))")" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4
with:
path: summary
pattern: ${{ steps.composer-name.outputs.name }}-*
merge-multiple: false
- name: Show results
run: |
echo "### Matrix results"
find summary -name results.txt | sort | xargs cat
token: ${{ secrets.CODECOV_TOKEN }}
slug: andersundsehr/lucene-cache
files: coverage.xml
continue-on-error: true
fail_ci_if_error: false
3 changes: 1 addition & 2 deletions Classes/Cache/Backend/LuceneCacheBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,7 @@ private function compress(string $data): string
return match ($this->compressionAlgorithm) {
'zstd' => "\x00Z" . $compressed,
'gzdeflate' => "\x00D" . $compressed,
'gzcompress' => "\x00C" . $compressed,
default => $compressed,
default => "\x00C" . $compressed,
};
}

Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ACT_IMAGE ?= efrecon/act:v0.2.80
ACT_IMAGE ?= efrecon/act:v0.2.87
WORKDIR ?= /work
UID_GID := $(shell id -u):$(shell id -g)
DOCKER_GID := $(shell stat -c '%g' /var/run/docker.sock)
Expand Down Expand Up @@ -30,9 +30,11 @@ endef
all: ci clean

ci: ## Standard-Event "push"
$(DOCKER_RUN) $(PLATFORM) $(SECRETS) $(ACT_ARGS)
$(DOCKER_RUN) $(PLATFORM) $(SECRETS) $(ACT_ARGS) 2>&1 | tee /tmp/act-output.log; \
echo ""; \
echo "=== 🏁 Summary ==="; \
grep "🏁" /tmp/act-output.log || true


clean:
docker rm -f $$(docker ps -aq --filter "name=act-") 2>/dev/null || true

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Use Lucene as Cache Backend for your TYPO3 projects

[![CI](https://github.com/andersundsehr/lucene-cache/actions/workflows/tasks.yml/badge.svg)](https://github.com/andersundsehr/lucene-cache/actions/workflows/tasks.yml)
[![codecov](https://codecov.io/gh/andersundsehr/lucene-cache/graph/badge.svg)](https://codecov.io/gh/andersundsehr/lucene-cache)
[![codecov](https://codecov.io/github/andersundsehr/lucene-cache/branch/main/graph/badge.svg)](https://app.codecov.io/github/andersundsehr/lucene-cache)

Provides a cache backend for TYPO3 that stores all cache information in Lucene index.

Expand Down Expand Up @@ -39,8 +39,6 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages'] =
];
```

The Option "indexName" must not contain other than the following chars: *a-zA-Z0-9\-_*

### Performance

The issue to develop that cache was a usage of very many cache tags.
Expand Down
2 changes: 2 additions & 0 deletions fractor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use a9f\Fractor\Configuration\FractorConfiguration;
use PLUS\GrumPHPConfig\FractorSettings;

Expand Down
Loading