initial commit
This commit is contained in:
25
helpers/constants/cache_ttl.php
Normal file
25
helpers/constants/cache_ttl.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache TTL (Time-To-Live)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is a collection of intervals in seconds that are commong to use
|
||||
| when caching, but written as a more human-friendly phrase.
|
||||
|
|
||||
*/
|
||||
|
||||
define('CACHE_TTL_FIVE_MINUTES', 300);
|
||||
define('CACHE_TTL_FIFTEEN_MINUTES', 900);
|
||||
|
||||
define('CACHE_TTL_HALF_HOUR', 1800);
|
||||
define('CACHE_TTL_ONE_HOUR', 3600);
|
||||
define('CACHE_TTL_TWO_HOURS', 7200);
|
||||
define('CACHE_TTL_THREE_HOURS', 10800);
|
||||
define('CACHE_TTL_SIX_HOURS', 21600);
|
||||
define('CACHE_TTL_TWELVE_HOURS', 43200);
|
||||
|
||||
define('CACHE_TTL_ONE_DAY', 86400);
|
||||
|
||||
define('CACHE_TTL_ONE_WEEK', 604800);
|
Reference in New Issue
Block a user