Antelope-Valley-College / polr

GNU General Public License v2.0
24 stars 10 forks source link

Fixed database so public links can be saved. #4

Closed mwilmes-at-avc closed 1 year ago

mwilmes-at-avc commented 1 year ago

Fixed validation so links can autogenerate ending.

mwilmes-at-avc commented 1 year ago

@dconner5 @rnwalden This is a spotfix to the links website. Looks like the framework upgrade also required an update to the database and to the validation code. It's working in test and production already, but I'm looking for a formal review for publicly published code.

mwilmes-at-avc commented 1 year ago

@rnwalden Background: This is the selector for cache storage and related options. This specifically is a short-circuit for an if-elif-else to see if the environment variable CACHE_DRIVER is equal to "file", "database", or "dynamodb". If so, the value of cache_tags is set to null, which directs this framework to not allow selective cache flushing. The ,'array' in the env() function sets the default to the array storage driver, which supports selective cache flushing.