✏️ 正在编辑: memo.php
路径:
/home/h359620/public_html/wp-content/plugins/elementor/modules/atomic-widgets/utils/memo.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php namespace Elementor\Modules\AtomicWidgets\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Memo { private array $cache = []; public function memoize( string $key, callable $callback ) { return function() use ( $key, $callback ) { if ( array_key_exists( $key, $this->cache ) ) { return $this->cache[ $key ]; } $this->cache[ $key ] = call_user_func( $callback ); return $this->cache[ $key ]; }; } }
💾 保存文件
← 返回文件管理器