Changeset 2077842
- Timestamp:
- 04/30/2019 01:10:18 PM (7 years ago)
- File:
-
- 1 edited
-
apparelcuts-spreadshirt/trunk/core/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
apparelcuts-spreadshirt/trunk/core/deprecated.php
r2074413 r2077842 7 7 */ 8 8 9 10 11 12 /* 13 * fix to reset wrong lang caches, will be removed again in a future release 14 * @todo safely remove after 8th Mai 2019 15 */ 16 17 add_filter( 'sfw/cache/expired', function( $expired, $cache, $expire ){ 18 19 if( $cache instanceof SFW_Remote_Cache_Entity ) { 20 21 $puffer = HOUR_IN_SECONDS; 22 $time = 1556629104; 23 24 if( $cache->entity->is( 'producttype' ) ) { 25 26 if( $expire <= ( $time + $puffer + DAY_IN_SECONDS * 3 ) ) { 27 return true; 28 } 29 } 30 if( $cache->entity->is( 'product' ) || $cache->entity->is( 'article' ) || $cache->entity->is( 'design' ) ) { 31 32 if( $expire <= ( $time + $puffer + WEEK_IN_SECONDS ) ) { 33 return true; 34 } 35 } 36 } 37 38 return $expired; 39 40 }, 10, 3 );
Note: See TracChangeset
for help on using the changeset viewer.