BackupPluginsNotice.php
1 year ago
BooleanNotice.php
2 years ago
DisabledItemsNotice.php
2 years ago
DismissNotice.php
11 months ago
FreeBackupUpdateNotice.php
2 years ago
Notices.php
11 months ago
NoticesHandler.php
11 months ago
ObjectCacheNotice.php
11 months ago
OutdatedWpStagingNotice.php
1 year ago
WarningsNotice.php
2 years ago
ObjectCacheNotice.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Notices; |
| 4 | |
| 5 | /** |
| 6 | * Class ObjectCacheNotice |
| 7 | * |
| 8 | * This class is used to show notice whether object cache has been skipped during restore |
| 9 | * |
| 10 | * @see Notices; |
| 11 | */ |
| 12 | class ObjectCacheNotice extends BooleanNotice |
| 13 | { |
| 14 | /** |
| 15 | * The action name to dismiss this notice |
| 16 | * |
| 17 | * @var string |
| 18 | */ |
| 19 | const ACTION_NOTICE_DISMISS = 'object-cache-skipped'; |
| 20 | |
| 21 | /** |
| 22 | * The option name to store the visibility of skipped object cache notice |
| 23 | * |
| 24 | * @var string |
| 25 | */ |
| 26 | const OPTION_NAME = 'wpstg_skipped_object_cache_notice'; |
| 27 | |
| 28 | public function getOptionName(): string |
| 29 | { |
| 30 | return self::OPTION_NAME; |
| 31 | } |
| 32 | } |
| 33 |