GitHub - RobiNN1/phpCacheAdmin: A web dashboard for your favorite caching system...
source link: https://github.com/RobiNN1/phpCacheAdmin
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
A web dashboard for your favorite caching system.
Installation
Simply extract the content. Optional but highly recommended, run composer install
before use.
If you need to customize or add servers to the configuration file,
do not edit config.dist.php
directly, but copy it to config.php
.
Updating
Replace all files and delete the cache
folder.
Cache
folder contains optimized Twig templates for faster page loading. However, when changes are made to the Twig files, the cache will not change (unless you havetwigdebug
enabled or delete folder).
Docker
https://hub.docker.com/r/robinn/phpcacheadmin
Run with single command:
docker run -p 8080:80 -d --name phpcacheadmin -e "PCA_REDIS_0_HOST=redis_host" -e "PCA_REDIS_0_PORT=6379" -e "PCA_MEMCACHED_0_HOST=memcached_host" -e "PCA_MEMCACHED_0_PORT=11211" robinn/phpcacheadmin
Or simply use it in docker-compose.yml
version: '3'
services:
phpcacheadmin:
image: robinn/phpcacheadmin
ports:
- "8080:80"
environment:
- PCA_REDIS_0_HOST=redis
- PCA_REDIS_0_PORT=6379
- PCA_MEMCACHED_0_HOST=memcached
- PCA_MEMCACHED_0_PORT=11211
links:
- redis
- memcached
redis:
image: redis
memcached:
image: memcached
It is not required to have both Redis and Memcached.
Environment variables
Redis:
PCA_REDIS_0_NAME
The server name for an info panel. Optional.PCA_REDIS_0_HOST
Redis host. Optional, when apath
is specified.PCA_REDIS_0_PORT
Redis port. Optional, when the default port is used.PCA_REDIS_0_DATABASE
Redis database. Optional.PCA_REDIS_0_USERNAME
Redis username. Optional, requires Redis >= 6.0.PCA_REDIS_0_PASSWORD
Redis password. Optional.PCA_REDIS_0_PATH
Redis unix domain socket. Optional.
Memcached:
PCA_MEMCACHED_0_NAME
The server name for an info panel. Optional.PCA_MEMCACHED_0_HOST
Memcached host. Optional, when apath
is specified.PCA_MEMCACHED_0_PORT
Memcached port. Optional, when the default port is used.PCA_MEMCACHED_0_PATH
Memcached unix domain socket. Optional.
To add another server, add the same environment variables, but change 0 to 1 (2 for third server and so on).
Requirements
- PHP >= 7.4
- redis, memcache(d), opcache or apcu php extensions (if none of them is installed, only the Server tab will be available)
- Redis server >= 3.0.0
- Memcached server >= 1.4.18
For better performance, always use extensions, however:
- If the Redis extension is not installed, the system will use a Predis client (if you are using composer, install Predis manually via
composer require predis/predis
).- If the Memcache(d) extension is not installed, the system will use a custom PHPMem client.
Testing
PHPUnit
composer test
PHPStan
composer phpstan
Development
For compiling Tailwind CSS run npm install
and then
npm run build
or npm run watch
for auto-compiling.
Recommend
-
134
nuster Wiki | English |
-
56
Rules for an optimized caching mechanism Abhinav Dhasmana ...
-
8
New Poll : What is your favorite game system? Wednesday, August 13, 2003 I have put up a new poll on the right of the page. This weeks question is “What is your favorite gaming system”? The
-
10
@wheeljack84Jeffrey HarrisCurrently enrolled in Hacker Noon Blogging Fellowship.This Slogging thread by JeffreyHarris, Jose Hernandez, Jack Boreham and L...
-
7
PHP UI Kit A toolkit for developing universal web interfaces with support for multiple CSS frameworks. Documentation Installation composer require...
-
2
[笔记] Anti-Caching: A New Approach to Database Management System Architecture
-
8
javinpaul ...
-
6
Screenwriting Das...
-
10
Tairo Dashboard System
-
3
We’re ex...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK