Skip to content

Commit

Permalink
Hide useless data type in memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Aug 29, 2023
1 parent f4f7a57 commit 56bd109
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Dashboards/Memcached/MemcachedTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ private function viewKey(): string {
return $this->template->render('partials/view_key', [
'key' => $key,
'value' => $formatted_value,
'type' => null,
'ttl' => Format::seconds($ttl),
'size' => Format::bytes(strlen($value)),
'encode_fn' => $encode_fn,
Expand Down Expand Up @@ -205,7 +204,6 @@ private function getAllKeys(array $all_keys): array {
'ttl' => $ttl,
'items' => [
'link_title' => $key,
'type' => 'string', // In Memcached everything is stored as a string. Calling gettype() will slow down page loading.
'ttl' => $ttl === -1 ? 'Doesn\'t expire' : $ttl,
],
];
Expand Down
4 changes: 0 additions & 4 deletions templates/dashboards/memcached.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
{{ include('partials/keys_table.twig', {
head_items: [
{'title': 'Key'},
{'title': 'Type', 'class': 'w-24 hidden md:table-cell'},
{'title': 'TTL', 'class': 'w-32'},
],
classes: {
2: 'hidden md:table-cell',
},
}) }}

0 comments on commit 56bd109

Please sign in to comment.