Skip to content

Set default cache expiry in config#6

Open
biskandar-pk wants to merge 1 commit intovkatsar:masterfrom
biskandar-pk:Default_Cache_Expiry_In_Config
Open

Set default cache expiry in config#6
biskandar-pk wants to merge 1 commit intovkatsar:masterfrom
biskandar-pk:Default_Cache_Expiry_In_Config

Conversation

@biskandar-pk
Copy link
Copy Markdown

  • Able to cache without any additional querystring cache ( keep it clean )
  • Able to force update the cache expiry via querystring ( optional )

@Akeri
Copy link
Copy Markdown

Akeri commented Apr 10, 2019

Hi @biskandar-pk, this feature it's very useful, I switched to your branch, thank you.
Hope the maintainer will merge it at some point.
It would also make sense to define a very default cache expiry without need to set it by model.
I see this comment in your code :

var cachExpire = 0; // set default to 5 minutes

but such default it's not working to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants