The WordPress object cache isn’t a persistent cache, it’s meant to cache data within a single page load, so “as long as possible” will never be longer than a single request.
Use the Transients API if you want to store your data across multiple page loads, or even simpler, just store it in an option manually.
Related Posts:
- Multiple Domains and Subdomains Using Multisite Installation
- WordPress Multisite platform for different city for single db
- How To Add Custom Form Fields To The User Profile Page?
- How can I trust switch_to_blog()?
- Specific upload folder for PDFs in custom Post type in WP multisite
- How to delete post revisions?
- Add additional Network constants to wp-config.php dynamically
- Add WordPress MU Network Admin via Database
- How to tell which database tables belongs to which multisite site
- Can upload doc and pdf but not ppt – not permitted for security reasons
- Shared table across network
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Best way to develop multisite and deploy on another server?
- find a random blogid across my multisite network that has at least one post published
- How To Provide Sub-Blogs Their Own Domain Names?
- Multisite: How to store global options vs. site options?
- Removing My Sites menu from Admin
- Prevent Deletion of Blogs
- Uploading/Deploying a Multi Site Install
- Multisite database upgrade SSL error
- Configure WordPress to read from database only, never write
- NGINX Multisite Rewrite rules
- What are the differences in capabilities between the super-administrator and administrator?
- Is it possible to fix/repair all Index, Primary Key, Unique (and all other) structure of a WordPress MS Database
- Migrating WPMS from apache to IIS7 causes Database Error
- Network setup tab is not shown under Tools
- Suggestions for WPMU Migration (advanced)
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- How do I add JavaScript that will execute on all my sites in Multisite?
- Limit multisite/network site names to a property of the user
- Using Multisite with a CDN?
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- How do I maintain static directories on multisite subdomains?
- How to Move Local Singlesite Database to Remote Multsite Database?
- How to change the database prefix in multisite (WPMU) install
- Importing Multiple DB to one MU database
- WP Multisite Static Frontpage
- What should I do? A multisite, a single website or many websites? [closed]
- Multiple homes for multiple languages [closed]
- Multisite setup creating custom table
- Is there a way to run upgrade.php for one blog?
- Hosting a seperate wordpress project on localhost
- Bulk activate a theme on multisite
- Migrating Multisite – Database error, missing wp_blogs table
- How to store custom user data on the database?
- Multisite development environment
- Pushing stored procedure to a multisite database in WordPress
- How does WordPress determine which multisite the user is on from the URL?
- How to recover deleted site in WordPress Multisite?
- WordPress Multisite domain mapping with different IPs
- WordPress Multisite – can I somehow merge the tables?
- Multisite with subfolders- can’t access main site- Error establishing a database connection
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- WordPress Multisite blogs not working after domain swap
- Least expensive way to get table prefix in multisite installation
- Removing Mutlisite lines stop DB connection
- How can I add custom meta on signup page and pass along to be used after blog activation?
- how to migrate wpmu from one host to the other?
- Migrating static site to multisite with multiple domains and subdomains
- Share DB tables between two blogs on the same WP Multisite installation
- Amazon EC2 and static page Caching (Multisite): How to enable Caching with multiple instances?
- How can I create blog specific database table in multisite?
- muliple wordpress multisite installs on the same sever
- $wpdb->update prefixes database name to table when executing query
- Different Domains in Multisite Setup
- WP MultiSite: Can’t select database error after changing to new domain
- Is WordPress cache shared for all blogs in a multisite network?
- Update WP install to WP network & it broke the DB connection
- How to share User Database between Two Multisite Installations + More
- How to publish some default pages in Multisite creation?
- more tables created when create a new site
- Questions about MU database schema and how to list all blogs
- Pros and Cons of Post Types vs. Multiple Blogs
- How does WP decide how to evaluate database integrity
- Multisite subdomain-site redirects to primary site
- How to use the same users table on multiple wordpress sites
- A database for each category?
- allow multisite in the installation process
- How to have differents sites share the same tables of DB?
- Error establishing a database connection after moving local wordpressmultisite from one directory to another
- Will resetting my database affect other sites on my multisite WordPress install?
- WordPress Database Cleanup
- Optimal setup for Multi Domain WordPress with Woocommerce
- Multi-site database upgrade claims success, but db_version not updated
- Get multisite count without php?
- Problem in adding new site on WP multisite
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Error establishing a database connection – Multi-site with subsite don’t exisit [duplicate]
- Plugin data shared in Multisite
- Is there a way to add a function that will get run after a blog is created?
- Merging versions of wp_posts based on post_title
- Pointing multiple subdomains at the same WordPress Installation
- WordPress multisite and one database
- Set static page as default front page on newly created sites in multisite
- Create a Network of Different websites with wordpress
- Using common slider in all sites
- Should I go for Multisite or separate WP Installation?
- HyperDB, Multisite – on new site creation put site’s tables to specific database
- WordPress Multisite