New Interface Added
An additional interface named Cacheable has been included in the program structure. This provides a new possibility for objects to interact with caching mechanisms within the software.
Interface Implementation in PostPolicy
The recently added Cacheable interface is now being put to use in the PostPolicy class, which outlines rules for handling blog posts within the software.
New Cache Function in PostPolicy
The PostPolicy class got an upgrade. It now has a cache() function that enables it to directly interact with the software's caching mechanisms.
Changes in PolicyCache Class
The PolicyCache class, which manages caching policies within the software, has been modified. It now considers the model (data structure) when determining cache duration. Furthermore, if a policy is Cacheable, it can use the new cache() method for better efficiency.
Modifications in AuthorizableModels Trait
The AuthorizableModels trait, which delegates the permissions related to different models in the software, is now able to effectively pass along necessary parameters related to authorizations. This change enhances the connection between the authorization and caching sections of the software.
New Test Case Additions
New tests are now available to check and ensure the proper function of individual policy caching. These tests thoroughly validate the recent changes made in the software relative to caching mechanisms.
PR Summary
New Interface Added An additional interface named
Cacheable
has been included in the program structure. This provides a new possibility for objects to interact with caching mechanisms within the software.Interface Implementation in PostPolicy The recently added
Cacheable
interface is now being put to use in thePostPolicy
class, which outlines rules for handling blog posts within the software.New Cache Function in PostPolicy The
PostPolicy
class got an upgrade. It now has acache()
function that enables it to directly interact with the software's caching mechanisms.Changes in PolicyCache Class The
PolicyCache
class, which manages caching policies within the software, has been modified. It now considers the model (data structure) when determining cache duration. Furthermore, if a policy isCacheable
, it can use the newcache()
method for better efficiency.Modifications in AuthorizableModels Trait The
AuthorizableModels
trait, which delegates the permissions related to different models in the software, is now able to effectively pass along necessary parameters related to authorizations. This change enhances the connection between the authorization and caching sections of the software.New Test Case Additions New tests are now available to check and ensure the proper function of individual policy caching. These tests thoroughly validate the recent changes made in the software relative to caching mechanisms.