1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00

11 Commits

Author SHA1 Message Date
Ryan Cramer
2690115966 Several updates for processwire/processwire-issues#1467 2024-07-05 09:50:01 -04:00
Ryan Cramer
176bd8eeac Minor updates in various classes 2023-06-05 13:35:04 -04:00
Ryan Cramer
6981e3009e Major refactor of WireCache which now isolates the cache getting/saving/deleting to a separate module/class implementing the WireCacheInterface interface. Eventually this will enable one to modify/replace where and how PW's cache data is stored. For instance, file system, Redis, Memcache, etc. The default class is WireCacheDatabase which stores cache data in the database, as WireCache did prior to this update. 2023-05-19 11:12:49 -04:00
Ryan Cramer
a8b3c772d9 Add a Debug::toStr() method for dumping any variable to a string (for debugging purposes) 2022-12-02 14:04:53 -05:00
Ryan Cramer
b87566d0b3 Minor code improvements and housekeeping for various core classes and modules 2022-09-23 11:19:51 -04:00
Ryan Cramer
31ede89079 Minor updates in Debug class including documentation additions and removeSavedTimer methods 2022-07-08 09:28:26 -04:00
Ryan Cramer
44405eed8a Several improvements the Debug::timer, including several new methods to give more control over timing. 2020-05-29 13:44:58 -04:00
Ryan Cramer
dde4c92b78 Update core Debug class to use PHP 7.3 hrtime() function for timers (rather than microtime), when available. Also add support for configuring timer precision via Debug::timerSetting('precision', $n) where $n is number of decimals. Default is 4. 2020-04-17 08:21:23 -04:00
Ryan Cramer
ddb4aebf60 Add new static Debug::backtrace() method to the Debug class. This returns a backtrace array that is simpler and more PW-specific than PHP's version. By default it excludes likely irrelevant (for most) hook-related method calls that usually fill up the backtrace. 2019-07-26 11:41:05 -04:00
Ryan Cramer
659391a4c3 Fix issue processwire/processwire-issues#316 - legacy db API variable class and debug timers in PHP7 producing unnecessary notice 2017-07-14 10:39:54 -04:00
Ryan Cramer
bac5b0de5d Initial commit to new repo (carried over from: https://github.com/ryancramerdesign/ProcessWire/tree/devns) 2016-09-02 14:55:17 -04:00