Commit Graph

1125 Commits

Author SHA1 Message Date
Michael 312c01a517 Several speed improvements (magiclink, caching, indexes) 2021-02-17 18:59:19 +00:00
Michael 6e1483545e Support for message delivering via uri-id 2021-02-14 14:24:48 +00:00
Michael c3398511b4 New table "post-content" 2021-01-30 22:03:53 +00:00
Michael 8eb3bddc2a Reduce the parameter chaos by splitting the update function 2021-01-30 13:31:59 +00:00
Michael 90f1175cf5 Setting "maintenance" for pre and post updates 2021-01-30 07:50:20 +00:00
Hypolite Petovan 9a9b43bd6c Fix wrong uses of DI::l10n() in Core\Update
- Fix typos in version number in translated messages
2021-01-21 10:36:52 -05:00
Michael 4157db5473 "item" is replaced by "post-view" / postupdate check added 2021-01-17 20:32:13 +00:00
Michael df135c31fe Merge remote-tracking branch 'upstream/develop' into no-frontend-worker 2021-01-07 10:44:12 +00:00
Michael 594b1a75b5 Use the correct pid 2021-01-05 21:48:29 +00:00
Michael 6ef0f9646f Set the new pid 2021-01-05 21:39:53 +00:00
Michael 2f8e873cc7 Wait for parent 2021-01-05 16:47:55 +00:00
Michael 17fbe5c299 Delete IPC entries 2021-01-05 16:01:05 +00:00
Michael 7e89bf5af8 Wait for child being ready 2021-01-05 10:18:25 +00:00
Michael 69c7e9af20 Let the worker run for an hour in daemon mode 2021-01-04 09:20:44 +00:00
Michael 74d7d7e164 Check for childf status 2021-01-03 22:57:25 +00:00
Michael d70d180e4b Merge remote-tracking branch 'upstream/2020.12-rc' into fork 2021-01-03 10:06:17 +00:00
Michael 10b035b51a Additional worker cooldown 2021-01-02 19:33:50 +00:00
Michael 7a03b72060 Improved daemon test 2021-01-02 08:43:55 +00:00
Michael 78f67c1e0e Check for reaching the memory limit 2021-01-01 23:10:38 +00:00
Michael a81ac835a1 The frontend worker is removed 2021-01-01 23:05:26 +00:00
Michael 9a6141dcbe Use "pcntl_fork" to fork processes 2021-01-01 19:35:29 +00:00
Michael 5dcc02594c Some more log levels 2020-12-31 20:44:33 +00:00
Michael d1ea529cfb Issue 9704: Improved log levels 2020-12-31 20:14:13 +00:00
Hypolite Petovan 5f148dcb42 Add temporary console command to fix workerqueue row with corrupted parameter data
- It should be reverted just before the 2020.12 release
2020-12-15 00:20:49 -05:00
Michael Vogel 33930b0bd9
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-12-09 06:58:19 +01:00
Michael dd94fb1242 Check for bad worker priorities 2020-12-08 21:58:32 +00:00
Michael edbdfbae6b workerqueue now has a "command" field 2020-12-03 15:47:50 +00:00
Michael 3f3f56db57 Poll interval function moved to feed class, first steps for delayed posts 2020-11-30 05:39:12 +00:00
Michael 818c064c0a The notifications parameters are now simplified 2020-11-25 19:56:39 +00:00
Hypolite Petovan ca823244cc Don't assume addons must have an *_install function
- Module-only addons don't have any
2020-11-21 23:19:03 -05:00
Michael aec9f1ebf0 Remove unused config variable 2020-11-21 15:15:58 +00:00
Michael 1de6251627 Code cleaning 2020-11-21 14:58:48 +00:00
Michael Vogel b40218eb0b Immediately fail when lock hadn't been acquired to prevent stocked updates 2020-11-21 14:17:14 +01:00
Michael Vogel 2a1c82cf05 Avoid multiple database update mails, changed log level 2020-11-21 13:28:06 +01:00
Michael 1bc76fdb6d Watchdog mode to check if the daemon is running 2020-11-20 19:50:08 +00:00
Michael 0edc058a17 Ensure that the daemon is called faster and more reliably 2020-11-18 13:29:10 +00:00
Michael 4965d6aa54 The profile page does now shows reshared items 2020-11-03 19:24:47 +00:00
Michael fd0e5cfe48 Added logging for executing child processes 2020-10-24 18:40:15 +00:00
Michael 592ac53ffc Worker priority / no shadow worker 2020-10-24 08:05:03 +00:00
Philipp Holzer a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3) 2020-10-18 20:56:31 +02:00
Michael Vogel 2c0db7546b
Update src/Core/Worker.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-17 15:54:52 +02:00
Michael 7efd01880c Define a maintenance window 2020-10-17 12:39:42 +00:00
Hypolite Petovan 9537a6d0f7 Remove unused App->force_max_items property 2020-10-13 07:52:13 -04:00
Philipp Holzer d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp Holzer 0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env) 2020-10-04 20:41:31 +02:00
Hypolite Petovan a852455d0e Merge remote-tracking branch 'friendica/stable' into develop
# Conflicts:
#	composer.lock
2020-09-20 15:32:58 -04:00
Philipp Holzer c9e510d4fd
Use getmypid() as dependency (improve testing) 2020-09-19 20:28:01 +02:00
Michael c36bfcf17d Changed loglevels in the worker 2020-09-17 17:57:41 +00:00
Michael Vogel 0fe2146338
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-09-17 06:33:31 +02:00
Michael 178455928a We can now manage relay servers and can send content to them 2020-09-15 17:45:19 +00:00
Philipp Holzer cdb61be06f
Rewrite Process Model/Core 2020-09-15 18:16:44 +02:00
Hypolite Petovan 043e04f484 Remove confirm template obsolete uses (except for contacts)
- Remove obsolete explode_querystring() function
- Remove $extra_inputs template variable
2020-09-12 09:09:15 -04:00
Hypolite Petovan 5f5b97dad6 Create self-only ACL template and helper method 2020-09-07 19:27:32 -04:00
Hypolite Petovan 4a4d0f04cb Fix new private message recipient input
- Add new private message recipient ACL template
- Remove now redundant theme private message templates
2020-09-03 10:01:58 -04:00
Hypolite Petovan a844fd8f58 Move ACL full selector template to subfolder
- Fix display overflow in contact complete suggestion box
2020-09-03 10:00:20 -04:00
Michael 31638d4742 Added and improved logging for the update process 2020-08-30 18:57:09 +00:00
Tobias Diekershoff e402026b83 refert to doc/INSTALL.md instead of README.txt in the installer 2020-08-30 10:12:42 +02:00
Michael d8d2cdc6ef Only c heck every 5 seconds for the system health 2020-08-29 13:01:58 +00:00
Michael 8148d9dc9d Unclaim on end / don't refetch 2020-08-29 11:26:40 +00:00
Michael 069786cd7f Simplified the code 2020-08-29 10:44:38 +00:00
Michael f9152ce140 Worker: Fetch jobs for multiple workers 2020-08-29 09:03:50 +00:00
Michael 98dd15ec9a Adding a cooldown phase for the daemon 2020-08-19 18:21:40 +00:00
Michael Vogel b5cca1ab93 Some small performance tweaks (indexes) 2020-08-18 12:50:18 +02:00
Hypolite Petovan 7019e02f61 Fix unexpected return value of RedisCache->delete()
- Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374
2020-08-09 10:45:06 -04:00
Hypolite Petovan bc02ad89d0 Add support for empty session write
- Ignored empty data left session intact, leading to unexpected behaviors
2020-08-07 22:50:16 -04:00
Hypolite Petovan b3dcecf987 Revert "Actually destroy session on logout"
This reverts commit 077b57ecb3.
2020-08-07 22:49:48 -04:00
Hypolite Petovan 077b57ecb3 Actually destroy session on logout 2020-08-06 22:59:09 -04:00
Michael f09d9bc9cc Remove url caching, locking cleanup 2020-08-06 18:53:45 +00:00
Hypolite Petovan 470079c37c Improve documentation of visitor-related functions 2020-08-04 22:44:42 -04:00
Michael a7d75702cc "Contact\User" class created 2020-08-04 04:47:02 +00:00
Michael cc85bc4156 Replace "gcontact" with "contact" - imroved suggestions 2020-07-30 14:08:32 +00:00
Michael Vogel 74bc3de472
Merge pull request #8931 from MrPetovan/task/2020-performance-improvements
Various performance improvements
2020-07-28 07:15:02 +02:00
Hypolite Petovan cd84f9a921 Reduce number of calls to Hook::delete when uninstalling addons/themes
- Add a sweeping Hook deletion on theme uninstall (like for addons)
2020-07-27 08:24:55 -04:00
Michael fd1da74980 Fix fatal error because of unknown function "fetchUrl" 2020-07-27 11:50:36 +00:00
Hypolite Petovan 1d0cd7328b Add dispatch data caching in App\Router
- Add new cache key "routerDispatchData"
- Update Dice dependencies since Router constructor signature changed
2020-07-27 02:33:08 -04:00
Hypolite Petovan bd1f4ebbde Refactor Hook and Addon to systematically use Hook::delete 2020-07-27 02:33:08 -04:00
Hypolite Petovan afb882048e Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Hypolite Petovan 19141b1bcf Add offset parameter to System::callstack
- Enable its use in centralized methods without polluting the stack
2020-07-27 02:31:42 -04:00
Michael Vogel 398e65d66b
Merge pull request #8911 from MrPetovan/task/curl_DI
Introduce "HTTPRequest" class
2020-07-25 09:50:20 +02:00
Michael 3fc3ded750 Useless info messages removed 2020-07-23 06:11:21 +00:00
nupplaPhil 1124090dbc Cleanup dependencies 2020-07-21 03:19:04 -04:00
nupplaPhil 657d08f09f Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull" 2020-07-21 03:15:53 -04:00
nupplaPhil 7029012f27 Rename "HTTPRequest::curl()" to HTTPRequest::get() 2020-07-21 03:14:01 -04:00
nupplaPhil 1aa07f87a4 Make "HTTPRequest::fetchUrl" dynamic 2020-07-21 03:04:58 -04:00
nupplaPhil 3b4cf87c95 Make "HTTPRequest::fetchUrlFull" dynamic 2020-07-21 03:02:52 -04:00
nupplaPhil 2973ed6448 Make "HTTPRequest::curl" dynamic 2020-07-21 03:01:12 -04:00
nupplaPhil 5344efef71 Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest" 2020-07-21 02:56:10 -04:00
Michael 5bf813d0ec Use "failed" field 2020-07-19 11:42:23 +00:00
Michael 70699878ee Replaced more calls of "Probe::uri" with "Contact::getByURL" 2020-07-16 19:22:38 +00:00
Michael b8682190de Fix fallback on unknown contact 2020-07-16 04:18:33 +00:00
Hypolite Petovan 631095eefd
Merge pull request #8883 from annando/replace-getdetails
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 13:49:27 -04:00
Michael 6d3949d54a Changed default value 2020-07-15 17:29:52 +00:00
Michael e374aecc46 Changed parameter order for "getbyURLForUser" 2020-07-15 17:22:12 +00:00
Michael d9c6a46ffe Replaced "getDetailsByURL" with "getByURL/getByURLForUser" 2020-07-15 04:42:04 +00:00
Hypolite Petovan 059087f998 Suppress all emails when Update::run is ran with $sendEmail = false
- Address Renderer crash in the App-less context of Console
2020-07-13 17:22:21 -04:00
Michael bbb2f1fcf5 Use "0" as default 2020-07-13 16:24:44 +00:00
Michael 5a6887fb2e Use "jsonexit" 2020-07-13 13:26:09 +00:00
Michael fcb37449f3 Fix unneeded database functions in the callstack 2020-07-10 07:01:28 +00:00
Hypolite Petovan 20a4799902 Update references to the friendica/friendica-directory stable branch 2020-06-30 15:25:17 -04:00
Hypolite Petovan 9c6fbc6a74 Update references to the friendica/friendica stable branch 2020-06-30 15:25:16 -04:00