In a literal sense? No, PHP instances are separate, else we’d be discussing multithreading
The problem you face is more fundamental than WP, the only way you’ll be able to keep this in memory is via object caching, which will let you put a copy of the data structure in easy reach.But it won’t save memory, accessing the data will create a copy, and if your machine is not disk IO limited then the performance gains will be minimal
Basically, you would use WP Cache to store the data in the object cache, then make sure there’s an object cache dropin for Redis/Memcached/etc
Using WP Cache functions without this, will keep the data in memory until the end of the request. Using plugins that use file based caching will give you no benefit, and you’ll need to install Redis/Memcached/etc at a server level
Related Posts:
- How can a plugin create a page/form in the front end?
- Looking for WordPress System Diagrams
- How to output message during plugin activation
- How to add Request header in WordPress remote api calls
- How to provide translations for a WordPress TinyMCE plugin?
- Init action hook running late after PayPal’s return url?
- Get specific color from admin color scheme
- Where do I start from
- How do you create a custom edit.php / edit pages page
- Check the Version of an Enqueue’d External Library
- Edit the output of wp_widget_rss_output()
- Change of query var in pre_get_posts not maintained
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- How to Parse an Array of Elements in Gutenberg Block
- Custom rewrite rule serves content, but returns 404 error code
- Will changing the ‘Plugin Name’ header in the next update of a plugin break anything?
- Performance of several get_option() calls
- Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?
- How to edit mySQL wp_posts table from plugin php?
- Creating a Wordpess Plugin that writes data to a csv file. The data doesn’t show in the csv file?
- WP_Query with tax_query, order by most ‘matches’
- Using the Settings API, how should I add multiple values to an option?
- WP custom menus error > menu name already exists?
- Problem with is_active_sidebar?
- Prevent Plugin from loading on ‘wp-admin / wp-login’
- How to sanitize user input?
- Remove Internal Style Sheet if no Value Provided?
- Widget update function not saving values
- override pluggable.php functions
- get_the_excerpt() is not returning an empty string when the_excerpt is blank?
- “Plugin could not be activated because it triggered a fatal error.”
- Storing product price data in the database
- Does the order of sections in readme.txt matter?
- Correct check for any admin page with editor
- Add column in WP user but it goes wrong
- modify wordpress default search
- How to remove the current post from the query?
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- How to perform a heavy and long process in cron jobs?
- Woocommerce extend tax report with custom column
- Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?
- how to get up row in wordpress with wpdb
- Hook into Jetpacks Publicize without using a post type
- How to limit number of number of categories displayed by categories widget
- How to remove default style of header in wordpress metabox
- Is it necessary to do validation again when retrieving data from database?
- How to add new options to my WordPress plugin
- Using WordPress PHP code, how to bulk delete only 100 subscribers at a time from thousands of users?
- Checking a WordPress for OWASP top 10 vulnerabilities [closed]
- After plugin activation hook
- term_exists() returning NULL on term that exists
- hook filter after the_content on a specific page
- The Correct Way to Use Nonce Field without Settings API
- Run command “composer install” when activating wordpress plugin
- Page is loading after submit before the file is processed
- Insert Into Post Not Working For Audio File Using jQuery
- wp_schedule_event is registered but function isn’t running
- Adding Custom CSS with PHP
- How to remove/replace current page template?
- How to receive notification of deprecated API elements and functions?
- Using password protection to load different page elements?
- How to make an admin plugin menu page go full screen?
- It is possible to pass $args that sent by add_settings_field() inside another function?
- Change reminder email date to 14 days before
- Generating a password-protected front-end page via a plugin
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- wp_remote_post not working with admin-post.php
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Adding Amchart Interface to WordPress API
- WordPress Own Rewrite Rules
- Default media uploader is not showing in wordpress website
- Don’t print customizer styles when no setting has been used
- Load custom translation in custom plugin fails
- Buddy Press restrict the capability to edit users
- bindParam? WordPress 4.9.5 SQL LIKE statement %s and %LIKE%
- tweaking the
- Plugin with functions inside a class & how to trigger WP CRON
- “Headers Already Sent” Nightmare on Plugin
- external Integration with wordpress timeout error
- add_settings_error on validating plugin options API
- Uncaught ReferenceError: kpoejy is not defined
- Problem to return more than single line captions
- Unable to show a message after plugin activation
- How to get an array out of a nav menu if it’s a plugin?
- Is there better way to do this without duplicating queries?
- How to create a simple plugin which show/hide an html code in wordpress?
- How to add conent (text) to Add New pages form of admin in WordPress
- Can I access WordPress API’s from within plugin scripts?
- Is there a way to make is_search() always return false
- Ajax url value to pass ‘variable’ to use in query
- Apply Filters Causing a 500 Internal Server Error
- Create wordpress dashboard metabox which spans all columns
- Open media box library from link
- How can i add insertion point between inner blocks in my custom block like core blocks
- What’s wrong in the WordPress Meta Box Generator code?
- add category id to option name when adding an option on edit_category
- esc_url, esc_url_raw or sanitize_url?
- React Plugin Settings Page Localization
- Is it within WordPress guidelines to update another plugin’s database fields from my own plugin? [closed]
- Block Development: hamburger module throwing error in save function