Comments (7)
I know, currently it just shows a plain unformatted value. This is definitely something that needs to be improved.
from phpcacheadmin.
gzipkey.txt
Here's the key in txt format.
Thanks for a great job!
from phpcacheadmin.
Hey, sorry to reopen the task. Just tested it, here's the result.
from phpcacheadmin.
What the heck is this compression lol. I tried the standard gzcompress()
, gzencode()
, gzdeflate()
and these work fine.
I need to check Magento source code. If this is from it.
from phpcacheadmin.
I can help you if you need more info, just let me know. You can write me here or email me.
from phpcacheadmin.
Got it, Magento uses this library https://github.com/colinmollenhour/Cm_Cache_Backend_Redis
And here is code for decoding https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/blob/master/Cm/Cache/Backend/Redis.php#L1315
It uses standard gzuncompress() as well but with prefix..
from phpcacheadmin.
Small update:
I don't want any system-specific codes in this app, so add this into 'encoding' => []
section in your config.php file
'gz_magento' => [
'view' => static function (string $value): ?string {
// https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/blob/master/Cm/Cache/Backend/Redis.php#L1306-L1323
if (strpos($value, "gz:\x1f\x8b") === 0) {
$value = substr($value, 5);
}
return @gzuncompress($value) !== false ? gzuncompress($value) : null;
},
'save' => static fn (string $value): string => "gz:\x1f\x8b".gzcompress($value),
],
The reason is simple, app now allows people to add their own encoding/decoding functions, so there's no reason to have it there by default. Also not everyone uses Magento.
from phpcacheadmin.
Related Issues (19)
- Typo in 'dashboard()'
- Unable to find template "components/paginate.twig" on update HOT 5
- Could not initialize random number generator (OS doesn't support the latest Apache) HOT 1
- FeatureRequest: Add APCu HOT 3
- Docker release tags HOT 3
- Fatal error: RedisDashboard::getType(): Return value must be of type string, null returned HOT 1
- Memcached keys not showing HOT 1
- Memcached stored as orgin type. HOT 2
- Sidebar optimization HOT 1
- Redis server cannot be connected HOT 4
- Back button doesn't keep the selected redis DB
- Display the current server resource usage HOT 1
- Memcached keys (in list) not shown HOT 5
- Redis keys links are pointing to DB0 by default
- phpCacheAdmin not compatible with PHP 7.4 (str_starts_with();) HOT 1
- Install without composer? HOT 3
- Error on Ubuntu 20.04
- Redis: Return back to the searched string with Back button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpcacheadmin.