Commit Graph

19 Commits

Author SHA1 Message Date
frytimo 5c1be1a318
Update clear cache method for settings object (#7348)
* update clear cache method for settings object

* re-use the database object from settings object
2025-03-31 10:04:33 -06:00
frytimo 6d356194ba
Ensure apcu_cache_info function is available before calling (#7323) 2025-03-17 14:58:36 -06:00
frytimo 0a42d8f198
Add caching to the auto_loader for interfaces (#7320)
* update auto loader to load and cache interfaces

* use new method to update the auto loader cache

* use new interface

* use new interface to trigger a cache flush

* update the console upgrade menu

* update the missing implements syntax

* add the clear_cache to the flush cache button
2025-03-15 09:13:36 -06:00
frytimo 77d2b3099a
Create get methods for domain_uuid and user_uuid (#7144)
* create get methods for domain_uuid and user_uuid
2025-03-13 14:32:51 -06:00
frytimo d529021b3f
Use boolean setting as true boolean (#7284)
* use boolean setting as true boolean

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.
2025-03-04 11:25:47 -07:00
frytimo d919a3cc1b
Add the apcu caching ability for performance (#7276)
* add the apcu caching ability for performance
When the PHP extension APCu is loaded, the settings class and the auto_loader will cache their results across requests in RAM. For more information about the APCu extension visit the PHP page: https://www.php.net/apcu

* use global instead of default terminology
2025-02-25 17:21:41 -07:00
FusionPBX cd8d5302ac
Fix temporary permissions 2024-11-29 13:57:01 -07:00
FusionPBX c81e6482a8
Replace the empty function with isset
Don't use empty when value can be 0
2024-10-27 11:08:37 -06:00
FusionPBX 56c59289d4
Update boolean settings
Settings of type boolean need to be set as boolean.
2024-10-22 18:15:35 -06:00
FusionPBX 56aea7c66d
Domain settings array override default settings
Domain setting array types override the default settings set as type
2024-07-04 18:05:37 -06:00
frytimo 30b38e7d86
Add methods to handle device and add documentation (#6989) 2024-05-31 11:19:03 -06:00
FusionPBX f873ee7757
Update settings.php
Reverting mixed type until more people have migrated off of PHP 7.4
2024-03-04 09:35:17 -07:00
frytimo ebe12ef338
allow setting a default value (#6908) 2024-03-01 10:26:51 -07:00
fusionate ad86456b33
Prevent an error with array - in default_settings() method 2024-01-10 22:25:41 +00:00
FusionPBX bca1d8a573
Prevent an error with array
This is required for PHP 8.1 and higher. This is required for because PHP 8.1 introduced stricter type checking.
2024-01-10 15:08:20 -07:00
frytimo 9a982edc2e
update the settings set method to use params instead of array (#6804)
* update the settings set method to use params instead of array

* remove test code
2023-09-20 17:59:37 -06:00
FusionPBX 3f4c4702c5
Add set method to the settings class 2023-09-14 15:43:52 -06:00
FusionPBX e5f6c3067a
settings class use get and refine further 2023-09-14 12:28:38 -06:00
FusionPBX 0ec6ed696c
Create a new settings class 2023-09-13 09:46:52 -06:00