Ralf Becker
8bb4f56149
implement (increment|decrement)Cache to avoid race-conditions if multiple processes update a value
...
implemented in memcached and APCu backends, default implementation using get&set in base-class
2021-05-31 20:32:10 +02:00
Ralf Becker
cda95d8188
store some lock-data, so only a single callback calculate data on cache-miss
...
done to avoid race-conditions where many processes try to fetch and therefore calculate some expensive to calculate data
eg. mass-mailings in our hosting
2021-05-27 08:52:58 +02:00
Ralf Becker
fed41622c2
fixing all sorts of PHP 8 errors and PHPStorm errors
2021-03-31 17:50:01 +02:00
Ralf Becker
e996b2c0cf
reverting 2 changes around sessions which break our installation
...
checking for the not existing (new) database runs into an invinit recursion
the checks not to use $_SESSION, if no session is active was added in an attempt to get SimpleSAMLphp discovery working, but seems unneccessary for what we currently use
2020-06-15 10:11:31 +02:00
Ralf Becker
4c131c1866
SAML/Shibboleth with multiple IdP or optional on regular login page
2020-06-10 15:19:24 +02:00
Ralf Becker
c85f1f3d05
some fixes for warnings during phpUnit about caching
2020-03-04 20:27:10 +01:00
Ralf Becker
44d9fcc790
Revert "* CalDAV/OutlookSynchronizer: reject invitations when client deletes then without appropriate rights in his calendar"
...
This reverts commit 4c6e41d479
.
2020-03-04 19:16:50 +01:00
Ralf Becker
cbb1391c37
Revert "revert using files cache for cli change in order to fix failing install in Travis"
...
This reverts commit 1367463e6b
.
2020-03-04 19:15:43 +01:00
Ralf Becker
1367463e6b
revert using files cache for cli change in order to fix failing install in Travis
2020-03-04 19:08:42 +01:00
Ralf Becker
4c6e41d479
* CalDAV/OutlookSynchronizer: reject invitations when client deletes then without appropriate rights in his calendar
2020-03-04 16:58:38 +01:00
Ralf Becker
c6bf51180f
implement expiration time for Api\Cache::(g|s)etSession()
2017-07-24 17:05:31 +02:00
Ralf Becker
96caf6effd
* Admin/APC(u): fix error in clear cache: if APC(u) runs out of memory clearing just instance cache clear whole cache
2016-07-28 12:02:21 +02:00
Ralf Becker
4f4530b98d
* Admin: add used caching provider and APCu stats to "PHP Information"
2016-07-08 12:09:37 +02:00
Ralf Becker
512bc77cfd
turn off permanent error_log
2016-07-07 19:54:12 +02:00
Ralf Becker
1818088a88
* APCu/PHP7: fixed not used APCu under PHP7, as it has no APC compatible interface
...
Apcu class is basicly a copy of Apc, but as its methods are called quite a lot, I dont want to add the overhad of checking to call apc_ or apcu_ on every call, anyway APC died with PHP 5.5 so we can remove Apcu class once we no longer support PHP 5.4
2016-07-07 17:39:37 +02:00
Ralf Becker
aeb9c93b55
moved egw_session class to Api\Session and removed unused egw_session_(files|memcache) as listing sessions is done now via egw_sessions table in db and memcache has its own session handler
2016-03-05 13:14:54 +00:00
Ralf Becker
ea798d93f2
move config to Api\Config
2016-03-05 10:23:11 +00:00
Ralf Becker
7aa3296cc5
move config to Api\Config
2016-03-05 10:22:40 +00:00
Ralf Becker
4486d9d7a2
fix namespace usage in refactured code:
...
namespace EGroupware\Api --> use eg. just Db, not Api\Db for EGroupware\Api\Db
use EGroupware\Api --> use eg. Api\Db for EGroupware\Api\Db
2016-03-01 09:14:06 +00:00
Ralf Becker
1ab66dd811
move exceptions to new api structure, thought to catch an exception by its deprecated name, new exceptions have to extend deprecated ones
2016-02-28 13:43:06 +00:00
Ralf Becker
9bf4dd288e
moved egw_cache to Api\Cache
2016-02-28 09:38:36 +00:00