Skip to content

Instantly share code, notes, and snippets.

@sepisoltani
Created January 5, 2021 12:04
Show Gist options
  • Save sepisoltani/b976b86f94521fdfbc4fd279f0f7fc52 to your computer and use it in GitHub Desktop.
Save sepisoltani/b976b86f94521fdfbc4fd279f0f7fc52 to your computer and use it in GitHub Desktop.
sepisoltan-iran-usage.php
<?php
return [
'use_cache' => false, # change this to true if you wants to use cache
'cache_times' => [
'provinces' => 86400, # time to purge provinces methods query caches
'countries' => 86400, # time to purge countries methods query caches
'cities' => 86400, # time to purge cities methods query caches
],
'cache_tags' => [
'provinces' => 'iran-provinces', # tags of provinces cache
'countries' => 'iran-countries', # tags of provinces cache
'cities' => 'iran-cities', # tags of provinces cache
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment