xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit 10c2fcf9b78d6eb568e81ec34addfa2246d32618

Declare state as loaded only if I can really save it in cache
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-05-24 18:53
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-05-24 18:53
Parent(s): 9f7998f23276d44435bd3319099d13bcb40c6b7e
Signing key:
Tree: c2be20e1efe302a95fa3f6e4a98c2379e4c994f4
File Lines added Lines deleted
inc/state.inc.php 3 2
File inc/state.inc.php changed (mode: 100644) (index e35035c..a1dfe6a)
... ... function rg_state_get($db, $var)
78 78 $v = $row['var']; $v = $row['var'];
79 79 $rows[$v] = $row['value']; $rows[$v] = $row['value'];
80 80 } }
81 rg_cache_set('state', $rows, RG_SOCKET_NO_WAIT);
82 rg_cache_set($k, 2, RG_SOCKET_NO_WAIT);
81 $r = rg_cache_set('state', $rows, RG_SOCKET_NO_WAIT);
82 if ($r !== FALSE)
83 rg_cache_set($k, 2, RG_SOCKET_NO_WAIT);
83 84
84 85 if (isset($rows[$var])) if (isset($rows[$var]))
85 86 $ret = $rows[$var]; $ret = $rows[$var];
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master