Commit Graph

714 Commits

Author SHA1 Message Date
Sebastian Grewe
4ea33a5e50 Adding cache detection to many pages
This will allow pages to skip loading data from backends like the
database or the wallet RPC server. If a cached page is detected and
valid, all dynamic content generation will be skipped completely.

Other pages that have not been adjusted in this commit will still fetch
backend data all the time. This will ensure clients always see the most
recent data, like worker information or account changes.

This should fix #309 completely but needs some testing.
2013-07-08 14:41:52 +02:00
Sebastian Grewe
9aeb005201 Adding {nocache} flags for dynamic content
This will update content instantly once the user changes it and not load
a cached version from the smarty cache.

Addresses #309
2013-07-08 14:40:10 +02:00
Sebastian Grewe
87ecfc5598 Add detailed smarty cache documentation to config
Instead of just making it availble document the smarty cache feature.

It might work for users, but it's advised to rely on the memcache
instead.

Fixes #309
2013-07-08 14:39:22 +02:00
Sebastian Grewe
da0ab75d5d adjust smarty configurations 2013-07-08 14:39:06 +02:00
Sebastian Grewe
3449d5c29c Adding cache lifetime option to smarty config
* Renamed configuration array to `smarty` => `cache`
* Added `smarty` => `cache_lifetime` to expire cache files properly

This should be safe to use, be aware that each page request is cached!
That includes any POST/GET calls to the site.

It does help in speeding up the site, up to 100% on some requests. For a
high traffic site it probably makes sense to enable this option with a
low cache lifetime to ensure most recent data.

Addresses #309
2013-07-08 14:39:06 +02:00
Sebastian Grewe
420ae332b5 Add detailed smarty cache documentation to config
Instead of just making it availble document the smarty cache feature.

It might work for users, but it's advised to rely on the memcache
instead.

Fixes #309
2013-07-08 14:38:45 +02:00
Sebastian Grewe
2c4f280767 Merge pull request #401 from TheSerapher/issue-392
Issue 392
2013-07-07 23:50:21 -07:00
Sebastian Grewe
83f8438a9c last cleanup before merge 2013-07-08 08:49:55 +02:00
Sebastian Grewe
c9df482683 Merge branch 'next' into issue-392 2013-07-08 08:47:35 +02:00
Sebastian Grewe
5e98496cec Update proportional_payout.php
Abort if no shares could be found for a block to allow user intervention to fix it.
2013-07-08 07:22:05 +02:00
Sebastian Grewe
6193604598 Fallback call if upstream share not found properly
Implemented a fallback method in case no upstream share can be found for
a block. This will result in same strange behaviour especially if a
later block has properly added a valid share and this will be used for a
previous block. At least now even the last block will be properly found
and marked as discovered by a user, even though no actual upstream share
was involved in this.

This is a dirty workaround for pools having payout issues. After all
blocks are processed and assuming upstream shares continue to work as
expected, this will *skip* broken blocks/shares.

Workaround fix for #392
2013-07-07 22:24:52 +02:00
Sebastian Grewe
6dc795fd77 Improved cron logging via logfiles
* Added 3rd party logger library KLogger
* Adjusted all cronjobs from verbose output to logging
* Added new logs folder for crons to write to
* Added new .gitignore for logs folder data
* Updated blocks class to only fetch blocks with no share_id
* Adjusted findblocks to use no blocks class method
2013-07-07 22:04:43 +02:00
Sebastian Grewe
6f3c5bb95e Merge pull request #398 from TheSerapher/issue-312-24h-hashrates
Issue 312 24h hashrates
2013-07-07 11:54:26 -07:00
Sebastian Grewe
2586aca34e Revert "Fixing issue with delayed inserts for shares"
This reverts commit 752b3e810f.
2013-07-07 19:52:24 +02:00
Sebastian Grewe
103dd51d42 Merge pull request #397 from TheSerapher/issue-388
More descriptive error message exceeding LTC threshold
2013-07-07 10:41:37 -07:00
Sebastian Grewe
9adcd767e3 Merge pull request #396 from TheSerapher/issue-375
Fixing PHP warning message for empty price var
2013-07-07 10:41:16 -07:00
Sebastian Grewe
748b63d908 Merge pull request #395 from TheSerapher/issue-389
Enforce unique account emails

Fixes #389
2013-07-07 10:40:47 -07:00
Sebastian Grewe
9d50c9a222 User proper archive table for union
Addresses #312
2013-07-07 19:39:58 +02:00
Sebastian Grewe
8b3aec6aad Merge pull request #394 from TheSerapher/issue-392-abort-payout
Abort payout process if `share_id` is missing
2013-07-06 15:23:12 -07:00
Sebastian Grewe
5d57593f5d Abort payout process if share_id is missing
If we have a block with NO `share_id` we abort the entire process. Less
of an issue with proportional since PPS is still being paid out, but a
block round will never actually end.

This will allow for manual intervention by the user. Otherwise blocks
found after the one having issues might trigger the payout process and
pay out shares of the old block in a more recently found one.

Please use #392 for further help on this, I have yet to replicate the
unknown block finder issue with the proper amount of upstream shares.
2013-07-07 00:19:56 +02:00
Sebastian Grewe
ba8fe0461b Merge pull request #393 from TheSerapher/issue-392
Fixing issue with delayed inserts for shares
2013-07-06 14:12:57 -07:00
Sebastian Grewe
752b3e810f Fixing issue with delayed inserts for shares
When shares are inserted with a delay for performance optimizations,
this will cause block timestamps to be completely off with share
timestamps. Hence the timestamp limited search is now removed, it would
cause too many issues for Stratum users/pools.

Addresses #392
2013-07-06 23:11:28 +02:00
Sebastian Grewe
32d764127e More descriptive error message exceeding LTC threshold
Fixes #388
2013-07-06 18:56:35 +02:00
Sebastian Grewe
fdb562b078 Fixing PHP warning message for empty price var
Fixes #375
2013-07-06 17:57:37 +02:00
Sebastian Grewe
307c7ee23f Enforce unique account emails
* display an error if user tries to re-use an email address
* moved SQL files to indicate the order of SQL import
* added unique email index SQL file

This will address #389, still needs email validation.
2013-07-06 17:47:50 +02:00
Sebastian Grewe
74aeb25fec Merge pull request #391 from TheSerapher/issue-387
Hard coded block limit for pool statistics
2013-07-06 08:39:19 -07:00
Sebastian Grewe
9412107b53 Hard coded block limit for pool statistics
This should fix a potential DoS like attack when fetching a random
amount of blocks continously.

Fixes #387
2013-07-06 17:38:23 +02:00
Sebastian Grewe
a6c7d5eaa9 Merge pull request #390 from TheSerapher/issue-383
Fixing PHP Warning on admin->user panel
2013-07-06 08:34:52 -07:00
Sebastian Grewe
89af793a28 Fixing pool hashrate graph
Should fix #312 completely.
2013-07-06 17:32:58 +02:00
Sebastian Grewe
0719958353 Merge pull request #386 from TheSerapher/issue-380
Change message on empty donor list
2013-07-05 23:39:20 -07:00
Sebastian Grewe
7a1f80bd1a Merge pull request #385 from TheSerapher/issue-382
Fix PHP Warning on user login
2013-07-05 23:38:51 -07:00
Sebastian Grewe
380e802c75 fixing stmt issue 2013-07-06 08:34:41 +02:00
Sebastian Grewe
c4592d2b6f Merge pull request #384 from TheSerapher/issue-315
Further attempt to clean up transactions list
2013-07-05 14:49:01 -07:00
Sebastian Grewe
2a47fbba4f Fixing PHP Warning on admin->user panel
This fixes #383
2013-07-05 23:45:32 +02:00
Sebastian Grewe
0d5653dda0 Change message on empty donor list
This fixes #380.
2013-07-05 23:28:51 +02:00
Sebastian Grewe
ab85af19a1 Re-add shares archive table for 24h hashrates
This should fix #312 and fix #256 where hashrates are reset on quick rounds.
Users are not able to properly view their past 24h hashrates.

Will be merged once confirmed working.
2013-07-05 23:23:19 +02:00
Sebastian Grewe
9b81d48e72 Fix PHP Warning on user login
While at it, I also extracted the hash function into it's own getHash
method. This will allow easy changes to hashing for string in the
future.

Fixes #382
2013-07-05 22:56:22 +02:00
Sebastian Grewe
346d9656d8 Merge pull request #381 from TheSerapher/issue-378
Use poolhash rate if nethash is smaller
2013-07-05 13:04:11 -07:00
Sebastian Grewe
7099b2cc04 Use poolhash rate if nethash is smaller
This should avoid some confusion for coins where the network hashrate
drops under the pool hashrate due to slow block finding rates.

Fixes #378
2013-07-05 22:02:16 +02:00
Sebastian Grewe
6e941de3b5 Merge pull request #379 from ilya-stromberg/issue-376
Fix #376 HTML/CSS markup at Statistics page
2013-07-05 12:59:57 -07:00
Ilya Stromberg
7a0f08d3d0 (#376) Fix HTML/CSS markup at Statistics page 2013-07-05 21:16:51 +04:00
Sebastian Grewe
7a194a6293 Further attempt to clean up transactions list
This hopefully cleans out remaining PHP warnings and table issues with
no/partial transactions available. Please test this out and report back
in #315.
2013-07-05 15:30:51 +02:00
Sebastian Grewe
9601f075ce Removing old upgrade SQL for old issues
To avoid confusion when setting up mmcfe-ng up for the first time I
decided to remove these files. If new ones should be required I will
base them on the then recent main structure and order them by number.
2013-07-05 13:38:10 +02:00
Sebastian Grewe
9eac465d4e Merge pull request #374 from TheSerapher/issue-372-mobile
remove link to block when blockexplorer empty
2013-07-05 02:05:24 -07:00
Sebastian Grewe
5654f38154 remove link to block when blockexplorer empty 2013-07-05 11:04:56 +02:00
Sebastian Grewe
838c190a9c Merge pull request #373 from TheSerapher/issue-372
Issue 372
2013-07-05 00:57:36 -07:00
Sebastian Grewe
57ce619ac2 updated dist config 2013-07-05 09:57:00 +02:00
Sebastian Grewe
a0243ee31e allow empty blockexplorer URL 2013-07-05 09:47:44 +02:00
Sebastian Grewe
a012fc2ee5 catch PHP warning 2013-07-04 16:06:59 +02:00
Sebastian Grewe
8719ca9b49 Merge pull request #370 from TheSerapher/issue-369
Issue 369
2013-07-04 04:28:36 -07:00