REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.52 KB
Close
/home/certprox/sacre.certproxywizard.com/wp/wp-content/plugins/tutor/cache/AbstractCache.php
Text
Base64
<?php /** * Cache abstract for implementing by the derived class * * @package Tutor\Cache * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 2.0.6 */ namespace Tutor\Cache; /** * AbstractCache class * * @since 2.0.6 */ abstract class AbstractCache { /** * Cache key * * @return string */ abstract public function key(): string; /** * Cache time * * @return int */ abstract public function cache_time(): int; /** * Cache data * * @return array */ abstract public function cache_data(); /** * Set cache data * * @since 2.0.6 * @return void */ public function set_cache(): void { do_action( 'tutor_cache_before_' . $this->key(), $this->cache_data() ); set_transient( $this->key(), $this->cache_data(), $this->cache_time() ); do_action( 'tutor_cache_after_' . $this->key(), $this->cache_data() ); } /** * Get user data from cache * * @since 2.0.6 * @return object cache data */ public function get_cache() { $data = get_transient( $this->key() ); return $data; } /** * If cache don't have value or expired or not exists * will return false * * @since 2.0.6 * @return bool true on success, false on fail */ public function has_cache(): bool { return $this->get_cache() ? true : false; } /** * Delete cache * * @since 2.0.6 * @return void */ public function delete_cache(): void { delete_transient( $this->key() ); // Clear data after delete cache. if ( isset( $this->data ) ) { $this->data = ''; } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AbstractCache.php
1.52 KB
lrw-r--r--
2026-05-26 12:31:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FlashMessage.php
2.00 KB
lrw-r--r--
2026-05-26 12:31:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QuizAttempts.php
1.78 KB
lrw-r--r--
2026-05-26 12:31:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TutorCache.php
2.08 KB
lrw-r--r--
2026-05-26 12:31:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).