{"id":3547,"date":"2025-12-27T20:51:22","date_gmt":"2025-12-27T17:51:22","guid":{"rendered":"https:\/\/www.dchost.com\/blog\/choosing-php-session-and-cache-storage-files-vs-redis-vs-memcached-for-wordpress-and-laravel\/"},"modified":"2026-11-04T19:13:42","modified_gmt":"2026-11-04T16:13:42","slug":"php-session-cache-files-redis-memcached","status":"publish","type":"post","link":"https:\/\/www.dchost.com\/blog\/en\/php-session-cache-files-redis-memcached\/","title":{"rendered":"PHP Sessions and Cache: Files, Redis or Memcached"},"content":{"rendered":"<div class=\"dchost-blog-content-wrapper\"><p>Session and application-cache storage affects latency, continuity and operations alongside PHP-FPM, OPcache and database tuning. This guide compares files, Redis and Memcached for WordPress and Laravel, including when a simple store is adequate and what a shared service adds. The relevant choice depends on the workload and recovery requirements, whether you use a <a href=\"https:\/\/www.dchost.com\/vps\">VPS<\/a>, <a href=\"https:\/\/www.dchost.com\/dedicated-server\">dedicated server<\/a> or colocation.<\/p>\n<p>The configuration examples target <strong>Laravel 13.x, PHP 8.3+ and a standalone Redis server<\/strong>, not Redis Cluster. A separate native PHP session example uses the PhpRedis extension. Updating a framework does not automatically replace an existing application\u2019s config files with a new project skeleton; inspect the actual version and configuration.<\/p>\n<div id=\"toc_container\" role=\"navigation\" aria-label=\"Table of Contents\" data-nosnippet class=\"toc_transparent no_bullets toc_numbered toc_title_center\"><p class=\"toc_title\">\u0130\u00e7indekiler<\/p><ul class=\"toc_list\"><li><a href=\"#Sessions_vs_Cache_What_Problem_Are_You_Solving\"><span class=\"toc_number toc_depth_1\">1.<\/span> Sessions vs Cache: What Problem Are You Solving?<\/a><\/li><li><a href=\"#Option_1_File_Based_Sessions_and_Cache\"><span class=\"toc_number toc_depth_1\">2.<\/span> Option 1: File Based Sessions and Cache<\/a><ul><li><a href=\"#When_File_Storage_Is_Good_Enough\"><span class=\"toc_number toc_depth_2\">2.1.<\/span> When File Storage Is Good Enough<\/a><\/li><li><a href=\"#Common_Bottlenecks_and_Pitfalls_With_Files\"><span class=\"toc_number toc_depth_2\">2.2.<\/span> Common Bottlenecks and Pitfalls With Files<\/a><\/li><\/ul><\/li><li><a href=\"#Option_2_Redis_for_Sessions_and_Cache\"><span class=\"toc_number toc_depth_1\">3.<\/span> Option 2: Redis for Sessions and Cache<\/a><ul><li><a href=\"#Why_Redis_Fits_PHP_Workloads_So_Well\"><span class=\"toc_number toc_depth_2\">3.1.<\/span> Why Redis Fits PHP Workloads So Well<\/a><\/li><li><a href=\"#Redis_for_WordPress_Object_Cache_Transients_and_Sessions\"><span class=\"toc_number toc_depth_2\">3.2.<\/span> Redis for WordPress: Object Cache, Transients, and Sessions<\/a><\/li><li><a href=\"#Redis_for_Laravel_Sessions_Cache_and_Queues\"><span class=\"toc_number toc_depth_2\">3.3.<\/span> Redis for Laravel: Sessions, Cache, and Queues<\/a><\/li><li><a href=\"#Redis_Drawbacks_and_Gotchas\"><span class=\"toc_number toc_depth_2\">3.4.<\/span> Redis Drawbacks and Gotchas<\/a><\/li><\/ul><\/li><li><a href=\"#Option_3_Memcached_for_Sessions_and_Cache\"><span class=\"toc_number toc_depth_1\">4.<\/span> Option 3: Memcached for Sessions and Cache<\/a><ul><li><a href=\"#Where_Memcached_Still_Makes_Sense\"><span class=\"toc_number toc_depth_2\">4.1.<\/span> Where Memcached Still Makes Sense<\/a><\/li><li><a href=\"#Memcached_Limitations_You_Need_to_Know\"><span class=\"toc_number toc_depth_2\">4.2.<\/span> Memcached Limitations You Need to Know<\/a><\/li><\/ul><\/li><li><a href=\"#Files_vs_Redis_vs_Memcached_Comparison_by_Criteria\"><span class=\"toc_number toc_depth_1\">5.<\/span> Files vs Redis vs Memcached: Comparison by Criteria<\/a><\/li><li><a href=\"#Choosing_Storage_for_Common_WordPress_Scenarios\"><span class=\"toc_number toc_depth_1\">6.<\/span> Choosing Storage for Common WordPress Scenarios<\/a><ul><li><a href=\"#1_Small_Blog_or_Company_Site_on_Shared_Hosting\"><span class=\"toc_number toc_depth_2\">6.1.<\/span> 1. Small Blog or Company Site on Shared Hosting<\/a><\/li><li><a href=\"#2_Growing_WooCommerce_Store_on_a_VPS\"><span class=\"toc_number toc_depth_2\">6.2.<\/span> 2. Growing WooCommerce Store on a VPS<\/a><\/li><li><a href=\"#3_WordPress_Behind_a_Load_Balancer_or_Reverse_Proxy\"><span class=\"toc_number toc_depth_2\">6.3.<\/span> 3. WordPress Behind a Load Balancer or Reverse Proxy<\/a><\/li><\/ul><\/li><li><a href=\"#Choosing_Storage_for_Common_Laravel_Scenarios\"><span class=\"toc_number toc_depth_1\">7.<\/span> Choosing Storage for Common Laravel Scenarios<\/a><ul><li><a href=\"#1_Internal_Tools_and_Admin_Panels\"><span class=\"toc_number toc_depth_2\">7.1.<\/span> 1. Internal Tools and Admin Panels<\/a><\/li><li><a href=\"#2_Public_APIs_and_Mobile_Backends\"><span class=\"toc_number toc_depth_2\">7.2.<\/span> 2. Public APIs and Mobile Backends<\/a><\/li><li><a href=\"#3_High_Traffic_SaaS_With_Background_Jobs\"><span class=\"toc_number toc_depth_2\">7.3.<\/span> 3. High Traffic SaaS With Background Jobs<\/a><\/li><li><a href=\"#Quick_Decision_Checklist\"><span class=\"toc_number toc_depth_2\">7.4.<\/span> Quick Decision Checklist<\/a><\/li><\/ul><\/li><li><a href=\"#Practical_Configuration_Tips_on_a_VPS_or_Dedicated_Server\"><span class=\"toc_number toc_depth_1\">8.<\/span> Practical Configuration Tips on a VPS or Dedicated Server<\/a><ul><li><a href=\"#1_PHP_FPM_and_OPcache_Still_Matter\"><span class=\"toc_number toc_depth_2\">8.1.<\/span> 1. PHP, FPM, and OPcache Still Matter<\/a><\/li><li><a href=\"#2_Baseline_Redis_Settings_for_Sessions_and_Cache\"><span class=\"toc_number toc_depth_2\">8.2.<\/span> 2. Baseline Redis Settings for Sessions and Cache<\/a><\/li><li><a href=\"#3_Memcached_Sizing_and_Key_Strategy\"><span class=\"toc_number toc_depth_2\">8.3.<\/span> 3. Memcached Sizing and Key Strategy<\/a><\/li><li><a href=\"#4_Monitoring_and_Troubleshooting\"><span class=\"toc_number toc_depth_2\">8.4.<\/span> 4. Monitoring and Troubleshooting<\/a><\/li><\/ul><\/li><li><a href=\"#Planning_Storage_on_DCHost_Infrastructure\"><span class=\"toc_number toc_depth_1\">9.<\/span> Planning Storage on DCHost Infrastructure<\/a><\/li><li><a href=\"#Primary_Technical_References\"><span class=\"toc_number toc_depth_1\">10.<\/span> Primary Technical References<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Sessions_vs_Cache_What_Problem_Are_You_Solving\">Sessions vs Cache: What Problem Are You Solving?<\/span><\/h2>\n<p>Before comparing storage backends, it helps to separate two concepts that are often mixed in the same sentence: sessions and cache.<\/p>\n<ul>\n<li><strong>Server-backed sessions:<\/strong> Data associated with a browser\/user session, such as form progress or state for an authenticated web flow. A cookie typically identifies the server-side record; lifetime and invalidation depend on the application. Other models, such as Laravel\u2019s cookie driver, also exist.<\/li>\n<li><strong>Regenerable cache:<\/strong> Reusable query\/API results or fragments with a reliable source of truth. A cache miss should be handled, but a backend connection failure does not automatically behave as a miss or trigger a safe fallback. Session state, locks, rate-limit counters and queue jobs require separate loss policies.<\/li>\n<\/ul>\n<p>WordPress authentication cookies and tokens are distinct from native PHP session files. WooCommerce\u2019s default session handler uses its own cookie and <code>woocommerce_sessions<\/code> database table, with object-cache access where available. Changing PHP\u2019s session handler or adding object cache does not automatically move that table into Redis. Laravel separately configures session, application-cache and queue drivers; <code>config:cache<\/code> and <code>route:cache<\/code> compile local framework files and are not selected by a Redis application-cache setting.<\/p>\n<p>Once you see sessions and cache as separate concerns, the trade offs between files, Redis, and Memcached become much clearer.<\/p>\n<h2><span id=\"Option_1_File_Based_Sessions_and_Cache\">Option 1: File Based Sessions and Cache<\/span><\/h2>\n<p>Native PHP defaults to the <code>files<\/code> session handler, but only requests that start a PHP session need one; this is not the WordPress or Laravel default by implication. Laravel 13\u2019s new-project session and cache defaults are database. File storage remains an option when the application has a suitable writable directory, restricted access and a cleanup\/lifecycle policy.<\/p>\n<h3><span id=\"When_File_Storage_Is_Good_Enough\">When File Storage Is Good Enough<\/span><\/h3>\n<p>File storage can be a suitable choice in these situations:<\/p>\n<ul>\n<li><strong>Single server, modest traffic<\/strong>: A corporate site, a small blog, or an internal dashboard whose session workload fits the server&#8217;s storage capacity.<\/li>\n<li><strong>Shared hosting without a Redis or Memcached option<\/strong>: If the plan does not provide either backend or allow you to install one, file based sessions may be a practical choice when disk performance is adequate.<\/li>\n<li><strong>Development<\/strong>: A simple local store can help early testing. Staging should represent production drivers, topology and failure behavior.<\/li>\n<\/ul>\n<p>If measurements show that file-session latency and concurrency fit the workload, moving the backend may not address the main bottleneck. Review <a href=\"https:\/\/www.dchost.com\/blog\/en\/php-fpm-settings-for-wordpress-and-woocommerce-pm-pm-max-children-and-pm-max-requests\/\">PHP-FPM settings for WordPress and WooCommerce<\/a> and OPcache alongside storage measurements; an NVMe label is not a performance result. Related guides are also available on the <a href=\"https:\/\/www.dchost.com\/blog\/\">DCHost blog<\/a>.<\/p>\n<h3><span id=\"Common_Bottlenecks_and_Pitfalls_With_Files\">Common Bottlenecks and Pitfalls With Files<\/span><\/h3>\n<p>File based sessions have three main issues as your site grows:<\/p>\n<ul>\n<li><strong>Locking overhead<\/strong>: PHP locks the session file while a request is working with it. Long running requests can therefore delay other requests that need that same session file.<\/li>\n<li><strong>Slow or overloaded disks<\/strong>: On busy shared hosting or on HDD based servers, repeated disk access for thousands of session files can create noticeable latency.<\/li>\n<li><strong>Multi server setups<\/strong>: If session files must be shared across web servers, NFS or another shared file system is one option. That shared storage can introduce a failure point and an I\/O bottleneck.<\/li>\n<\/ul>\n<p>The lock description applies to native PHP\u2019s files handler. Calling <code>session_write_close()<\/code> after all session updates can shorten its lock duration; later changes are not automatically persisted. Laravel allows requests for the same session to run concurrently by default. If concurrent writes can lose updates, evaluate Laravel\u2019s supported session-blocking mechanism separately. Changing the storage backend does not itself settle the concurrency model.<\/p>\n<p>File caching can also become an I\/O bottleneck under load. Compare its measured read and write latency with an in memory backend rather than assuming every file operation reaches physical disk or that a remote cache will always be faster.<\/p>\n<h2><span id=\"Option_2_Redis_for_Sessions_and_Cache\">Option 2: Redis for Sessions and Cache<\/span><\/h2>\n<p><strong>Redis<\/strong> is an in memory key value database that can persist data to disk and supports rich data structures.<\/p>\n<h3><span id=\"Why_Redis_Fits_PHP_Workloads_So_Well\">Why Redis Fits PHP Workloads So Well<\/span><\/h3>\n<ul>\n<li><strong>In-memory access:<\/strong> Active data can be read without file-storage latency; the network, command and load still affect end-to-end results.<\/li>\n<li><strong>Operations and structures:<\/strong> Counters, hashes, lists and sets can support application features. An atomic command does not automatically make a multi-step application workflow atomic.<\/li>\n<li><strong>RDB\/AOF:<\/strong> Configurable recovery can preserve data across restarts, with a loss window depending on settings. Persistence is neither a backup policy nor continuous-availability guarantee.<\/li>\n<li><strong>Shared access:<\/strong> App servers can use a common backend when client support, permissions and connectivity are configured. They then depend on that backend\u2019s availability and consistency.<\/li>\n<\/ul>\n<p>For example, a PHP application on a VPS or dedicated server could use Redis for sessions, cache, queues, and real time counters, with storage policies chosen for each workload.<\/p>\n<h3><span id=\"Redis_for_WordPress_Object_Cache_Transients_and_Sessions\">Redis for WordPress: Object Cache, Transients, and Sessions<\/span><\/h3>\n<p>For WordPress, distinguish these potential Redis integrations:<\/p>\n<ul>\n<li><strong>Persistent object cache<\/strong>: With a persistent object-cache integration, WordPress can store reusable query results and computed values in Redis, potentially reducing MySQL load. We walk through the full setup in our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/wordpress-object-cache-with-redis-or-memcached-step-by-step-for-shared-hosting-and-vps\/\">WordPress object cache with Redis or Memcached<\/a>.<\/li>\n<li><strong>Transients backend<\/strong>: Verify how the site&#8217;s transients use the chosen persistent-cache integration and size that backend for the workload; moving data out of database storage does not remove capacity limits.<\/li>\n<li><strong>Plugin sessions<\/strong>: A shared session backend is a separate integration from object caching. Verify that each plugin supports the intended session backend before planning a multi server deployment.<\/li>\n<\/ul>\n<p>For a high traffic WooCommerce store on a VPS or dedicated server, evaluate Redis object caching separately from session storage. An object-cache integration does not automatically replace the store&#8217;s session handler. Choose the session backend only after checking compatibility, then measure performance alongside PHP-FPM and database tuning.<\/p>\n<h3><span id=\"Redis_for_Laravel_Sessions_Cache_and_Queues\">Redis for Laravel: Sessions, Cache, and Queues<\/span><\/h3>\n<p>Laravel 13 supports the PhpRedis extension and the PHP-only <code>predis\/predis<\/code> Composer client; use <code>REDIS_CLIENT=predis<\/code> when that supported client is installed. Predis does not itself provide native PHP\u2019s <code>session.save_handler=redis<\/code> handler. The example below uses PhpRedis, an existing local standalone Redis service and a configured <code>app<\/code> account. Replace the password placeholder with the account\u2019s secret, keep it out of version control, and use suitable application\/environment-specific storage and prefixes.<\/p>\n<p>The .env and database-config examples are a pair. They do not migrate existing sessions or pending jobs:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">SESSION_DRIVER=redis\nSESSION_CONNECTION=session\nSESSION_STORE=redis\n\nCACHE_STORE=redis\nREDIS_CACHE_CONNECTION=cache\nREDIS_CACHE_LOCK_CONNECTION=default\n\nQUEUE_CONNECTION=redis\nREDIS_QUEUE_CONNECTION=queue\n\nREDIS_CLIENT=phpredis\nREDIS_HOST=127.0.0.1\nREDIS_USERNAME=app\nREDIS_PASSWORD=REPLACE_WITH_YOUR_REDIS_PASSWORD\nREDIS_PORT=6379\nREDIS_PREFIX=dchost_app_\nREDIS_DB=0\nREDIS_CACHE_DB=1\nREDIS_SESSION_DB=2\nREDIS_QUEUE_DB=3\n<\/code><\/pre>\n<p><code>CACHE_STORE=redis<\/code> selects <code>stores.redis<\/code> in <code>config\/cache.php<\/code>; <code>REDIS_CACHE_CONNECTION=cache<\/code> chooses its Redis connection. <code>SESSION_CONNECTION=session<\/code> and <code>REDIS_QUEUE_CONNECTION=queue<\/code> select the session and queue connections. The custom <code>REDIS_SESSION_DB<\/code>\/<code>REDIS_QUEUE_DB<\/code> variables have an effect only because the following configuration reads them.<\/p>\n<p>This is the Redis section of <code>config\/database.php<\/code>, not the whole file. Merge it with the application\u2019s existing configuration, preserving required TLS, URL and retry options. If an existing <code>REDIS_URL<\/code> or customization overrides the same connection fields, verify the effective target:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">&#039;redis&#039; =&gt; [\n    &#039;client&#039; =&gt; env(&#039;REDIS_CLIENT&#039;, &#039;phpredis&#039;),\n    &#039;options&#039; =&gt; [\n        &#039;prefix&#039; =&gt; env(&#039;REDIS_PREFIX&#039;, &#039;dchost_app_&#039;),\n    ],\n\n    &#039;default&#039; =&gt; [\n        &#039;host&#039; =&gt; env(&#039;REDIS_HOST&#039;, &#039;127.0.0.1&#039;),\n        &#039;username&#039; =&gt; env(&#039;REDIS_USERNAME&#039;),\n        &#039;password&#039; =&gt; env(&#039;REDIS_PASSWORD&#039;),\n        &#039;port&#039; =&gt; (int) env(&#039;REDIS_PORT&#039;, 6379),\n        &#039;database&#039; =&gt; (int) env(&#039;REDIS_DB&#039;, 0),\n    ],\n\n    &#039;cache&#039; =&gt; [\n        &#039;host&#039; =&gt; env(&#039;REDIS_HOST&#039;, &#039;127.0.0.1&#039;),\n        &#039;username&#039; =&gt; env(&#039;REDIS_USERNAME&#039;),\n        &#039;password&#039; =&gt; env(&#039;REDIS_PASSWORD&#039;),\n        &#039;port&#039; =&gt; (int) env(&#039;REDIS_PORT&#039;, 6379),\n        &#039;database&#039; =&gt; (int) env(&#039;REDIS_CACHE_DB&#039;, 1),\n    ],\n\n    &#039;session&#039; =&gt; [\n        &#039;host&#039; =&gt; env(&#039;REDIS_HOST&#039;, &#039;127.0.0.1&#039;),\n        &#039;username&#039; =&gt; env(&#039;REDIS_USERNAME&#039;),\n        &#039;password&#039; =&gt; env(&#039;REDIS_PASSWORD&#039;),\n        &#039;port&#039; =&gt; (int) env(&#039;REDIS_PORT&#039;, 6379),\n        &#039;database&#039; =&gt; (int) env(&#039;REDIS_SESSION_DB&#039;, 2),\n    ],\n\n    &#039;queue&#039; =&gt; [\n        &#039;host&#039; =&gt; env(&#039;REDIS_HOST&#039;, &#039;127.0.0.1&#039;),\n        &#039;username&#039; =&gt; env(&#039;REDIS_USERNAME&#039;),\n        &#039;password&#039; =&gt; env(&#039;REDIS_PASSWORD&#039;),\n        &#039;port&#039; =&gt; (int) env(&#039;REDIS_PORT&#039;, 6379),\n        &#039;database&#039; =&gt; (int) env(&#039;REDIS_QUEUE_DB&#039;, 3),\n    ],\n],\n<\/code><\/pre>\n<p>The Laravel 13 skeleton\u2019s cache, session and queue config files must read these selectors. An older\/custom application might still read <code>CACHE_DRIVER<\/code>; the application\u2019s config decides the name. Here cache uses DB 1, sessions DB 2, queues DB 3 and default DB 0. The cache-lock connection is explicitly <code>default<\/code>. These are logical namespaces on one server, not separate memory or eviction budgets; Redis Cluster supports only DB 0.<\/p>\n<p>Typical Laravel patterns with Redis include:<\/p>\n<ul>\n<li><strong>Sessions:<\/strong> A shared backend for session-using web flows, with explicit lifetime and concurrent-update behavior.<\/li>\n<li><strong>Application cache:<\/strong> Regenerable results with keys, TTLs and invalidation; this does not place compiled config\/route files in Redis.<\/li>\n<li><strong>Redis queues:<\/strong> A supported Laravel queue backend, with job recovery and loss requirements distinct from cache.<\/li>\n<\/ul>\n<p>Our <a href=\"https:\/\/www.dchost.com\/blog\/en\/laravel-production-optimization\/\">Laravel production tuning guide<\/a> covers the surrounding PHP-FPM, OPcache and worker architecture. Check its assumptions against your deployed versions and workload.<\/p>\n<h3><span id=\"Redis_Drawbacks_and_Gotchas\">Redis Drawbacks and Gotchas<\/span><\/h3>\n<p>Redis is powerful, but it is not magic. You should be aware of a few trade offs:<\/p>\n<ul>\n<li><strong>Needs RAM<\/strong>: Size memory for the active dataset and operational overhead. Insufficient RAM can cause severe performance or availability problems; swapping is not an inevitable outcome on every system.<\/li>\n<li><strong>Persistence settings determine crash recovery<\/strong>: Persistence does not guarantee that every acknowledged write survives a crash. For example, AOF with an every-second fsync policy can lose recent writes. This is usually acceptable for cache, but more sensitive for sessions.<\/li>\n<li><strong>Eviction policy matters<\/strong>: If you use the same Redis instance for sessions and cache, a bad <code>maxmemory<\/code> and eviction configuration can cause user sessions to be evicted under pressure. We go deeper into TTL and eviction strategy in <a href=\"https:\/\/www.dchost.com\/blog\/en\/redis-vs-memcached-wordpress-woocommerce\/\">our Redis vs Memcached tuning playbook for WordPress and WooCommerce<\/a>.<\/li>\n<\/ul>\n<p><code>maxmemory<\/code> is not a cap on the entire Redis process\u2019s RSS. Replication\/persistence buffers and other overhead need headroom within the VPS budget. TTL expiration and eviction are different: <code>noeviction<\/code> prevents capacity eviction but does not prevent expiry, and it can cause memory-growing writes to fail. The application must handle that failure.<\/p>\n<p>Consider separate Redis instances when cache, sessions and queues need different memory\/eviction policies. Logical databases on one instance only separate key namespaces and DB-scoped operations: they still share the process, RAM, CPU, eviction behavior, failure domain and RDB\/AOF files. Prefixes and DB numbers are not authorization boundaries. Separate instances on the same VPS still share host resources.<\/p>\n<h2><span id=\"Option_3_Memcached_for_Sessions_and_Cache\">Option 3: Memcached for Sessions and Cache<\/span><\/h2>\n<p><strong>Memcached<\/strong> is a key\/value cache service. Standard use keeps data in memory and requires the application to tolerate misses or lost cached values. Supported session drivers exist, but the service\u2019s availability and loss behavior must fit the session workload.<\/p>\n<h3><span id=\"Where_Memcached_Still_Makes_Sense\">Where Memcached Still Makes Sense<\/span><\/h3>\n<p>Memcached is a strong candidate when:<\/p>\n<ul>\n<li><strong>Regenerable key\/value cache:<\/strong> The required operations and TTL behavior fit the selected integration.<\/li>\n<li><strong>Operational fit:<\/strong> The team can size memory, secure access and handle failures with its supported client.<\/li>\n<li><strong>Distribution:<\/strong> A suitable client or proxy can distribute keys across servers; distribution alone does not provide replication or session durability.<\/li>\n<\/ul>\n<p>For simple get and set workloads, compare performance under your own traffic patterns as well as ecosystem support and features.<\/p>\n<h3><span id=\"Memcached_Limitations_You_Need_to_Know\">Memcached Limitations You Need to Know<\/span><\/h3>\n<p>Memcached is intentionally limited, which matters for your design:<\/p>\n<ul>\n<li><strong>Recovery:<\/strong> Standard cache use must tolerate data loss. Optional warm restart can preserve cache across compatible clean restarts but is not crash-safe. Extstore can place values on flash while retaining keys in RAM; it is not a general durability guarantee.<\/li>\n<li><strong>Replication and availability:<\/strong> Design these with the supported client\/proxy and infrastructure; adding servers does not automatically replicate every session.<\/li>\n<li><strong>Item limits:<\/strong> Check the configured maximum item size and serialization overhead. Oversized cached values or sessions can fail to store; do not assume an arbitrary limit applies to every build.<\/li>\n<\/ul>\n<p>For session data, choose Memcached only when its possible loss and recovery behavior are acceptable and the integration is supported. For regenerable WordPress or Laravel cache, compare it with Redis using representative workload measurements and the team\u2019s operational requirements.<\/p>\n<h2><span id=\"Files_vs_Redis_vs_Memcached_Comparison_by_Criteria\">Files vs Redis vs Memcached: Comparison by Criteria<\/span><\/h2>\n<p>Here is a high level comparison of the three options across key dimensions.<\/p>\n<table>\n<thead>\n<tr>\n<th>Criterion<\/th>\n<th>Files<\/th>\n<th>Redis<\/th>\n<th>Memcached<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Setup<\/td>\n<td>Appropriate directory, permissions and lifecycle management<\/td>\n<td>Service and compatible client; Laravel supports PhpRedis or Predis, native Redis sessions require the PhpRedis handler<\/td>\n<td>Service and supported integration; Laravel\/native examples use the PHP Memcached extension<\/td>\n<\/tr>\n<tr>\n<td>Performance<\/td>\n<td>Depends on storage, locking model and workload<\/td>\n<td>Depends on operations, memory, network and load<\/td>\n<td>Depends on client, memory, network and load<\/td>\n<\/tr>\n<tr>\n<td>Recovery<\/td>\n<td>Depends on filesystem durability and cleanup<\/td>\n<td>Configured RDB\/AOF with an evaluated loss window<\/td>\n<td>Cache loss must be tolerated; optional clean warm restart is not crash safety<\/td>\n<\/tr>\n<tr>\n<td>Multiple servers<\/td>\n<td>Needs a deliberate sharing\/stickiness and node-failure plan<\/td>\n<td>Shared network backend with client\/topology and failure requirements<\/td>\n<td>Supported shared access\/distribution with explicit loss handling<\/td>\n<\/tr>\n<tr>\n<td>Potential fit<\/td>\n<td>Adequate measured single-node session\/cache workloads<\/td>\n<td>Supported session, cache, Redis queue and counter integrations<\/td>\n<td>Regenerable cache and session uses that accept its loss behavior<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span id=\"Choosing_Storage_for_Common_WordPress_Scenarios\">Choosing Storage for Common WordPress Scenarios<\/span><\/h2>\n<h3><span id=\"1_Small_Blog_or_Company_Site_on_Shared_Hosting\">1. Small Blog or Company Site on Shared Hosting<\/span><\/h3>\n<p>If you run a classic blog or a brochure site with a page builder, low to medium traffic, and a single hosting account, you do not need to rush into Redis.<\/p>\n<ul>\n<li>If a plugin uses PHP sessions, file storage may be sufficient for this small, single-server setup; assess sessions separately from WordPress object caching.<\/li>\n<li>Use a good page cache plugin or LiteSpeed Cache if your plan supports it. Our <a href=\"https:\/\/www.dchost.com\/blog\/en\/hosting-performance-for-elementor-divi-and-page-builders\/\">hosting performance guide for Elementor, Divi and other builders<\/a> explains how to size CPU and RAM correctly.<\/li>\n<li>If session file I\/O is a measured bottleneck, assess storage latency and contention rather than relying on the SSD or NVMe label alone.<\/li>\n<\/ul>\n<p>Choose the next optimization from measured PHP, database, image, network and storage costs. A small site does not need an extra cache service solely because another site uses one.<\/p>\n<h3><span id=\"2_Growing_WooCommerce_Store_on_a_VPS\">2. Growing WooCommerce Store on a VPS<\/span><\/h3>\n<p>As traffic and campaign peaks grow, measure session-storage latency and database load before choosing a cache backend. Consider these layers separately:<\/p>\n<ul>\n<li><strong>Session storage<\/strong>: Identify the session handler used by the store and its plugins before selecting a backend. Do not assume that changing PHP&#8217;s session handler or installing an object cache moves every checkout and account session into Redis.<\/li>\n<li><strong>Persistent object cache in Redis<\/strong>: Reuse cacheable objects and query results to reduce repeated database work. Combine this with the tuning ideas in <a href=\"https:\/\/www.dchost.com\/blog\/en\/wordpress-server-tuning-php-redis-mysql\/\">our WordPress server tuning guide<\/a>.<\/li>\n<li><strong>Page cache at web server or CDN level<\/strong>: This reduces PHP work for cacheable public responses. Bypass cart, checkout, account, session-specific, and other personalised or dynamic API responses, even for anonymous visitors; our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/the-1-5-second-miracle-how-nginx-microcaching-makes-php-feel-instantly-faster\/\">Nginx microcaching for PHP<\/a> shows what is possible even on a single VPS.<\/li>\n<\/ul>\n<p>Compare cache tuning with hardware upgrades against the bottleneck you measured. Evaluate concurrent-user capacity and TTFB under representative store traffic before attributing an improvement to Redis or NVMe storage.<\/p>\n<h3><span id=\"3_WordPress_Behind_a_Load_Balancer_or_Reverse_Proxy\">3. WordPress Behind a Load Balancer or Reverse Proxy<\/span><\/h3>\n<p>If a plugin uses file based PHP sessions, running it across multiple web servers raises a session-sharing problem. Keeping sessions in files requires a strategy such as sticky sessions or shared storage, with corresponding availability and operational trade-offs.<\/p>\n<p>A shared-storage design can include:<\/p>\n<ul>\n<li>For components using native PHP sessions, evaluate a compatible shared handler; WooCommerce\u2019s default table-backed handler remains a separate concern.<\/li>\n<li>A persistent object cache can use a supported Redis integration. On standalone Redis, another DB number provides a namespace, not resource\/eviction isolation. Redis Cluster supports only DB 0; use a compatible topology and separate instances when policies must differ.<\/li>\n<li>Plan proxy and node-failure behavior; <a href=\"https:\/\/www.dchost.com\/blog\/en\/nginx-reverse-proxy-load-balancer-small-projects\/\">our Nginx reverse proxy and load balancer guide<\/a> provides a complementary architecture example.<\/li>\n<\/ul>\n<p>Sentinel with replicas is one possible Redis failover design, but requires compatible clients and independently placed monitoring components. Asynchronous replication can lose acknowledged writes during failure; test recovery and data loss rather than treating replicas as a guarantee. Our <a href=\"https:\/\/www.dchost.com\/blog\/en\/never-lose-your-cache-again-high-availability-redis-for-wordpress-with-sentinel-aof-rdb-and-real-failover\/\">high availability Redis guide<\/a> discusses that separate topic.<\/p>\n<h2><span id=\"Choosing_Storage_for_Common_Laravel_Scenarios\">Choosing Storage for Common Laravel Scenarios<\/span><\/h2>\n<h3><span id=\"1_Internal_Tools_and_Admin_Panels\">1. Internal Tools and Admin Panels<\/span><\/h3>\n<p>For small internal applications with limited concurrency, Laravel sessions and cache on files or database can be perfectly acceptable:<\/p>\n<ul>\n<li>Evaluate file or database session\/cache drivers against the workload; Laravel 13 uses <code>CACHE_STORE<\/code> to select the application cache store.<\/li>\n<li>A single-node design can simplify session access if its capacity and recovery limits are acceptable; it is not a universal deployment requirement.<\/li>\n<li>Measure PHP-FPM, OPcache and database behavior alongside storage.<\/li>\n<\/ul>\n<p>For the file option use <code>CACHE_STORE=file<\/code>; database stores need their configured tables. Both can be valid production choices when the workload fits. Staging should represent production drivers and failure modes.<\/p>\n<p>Consider Redis later if measurements identify session or cache storage as a bottleneck. Plan the migration, including service and client setup, existing session continuity, and cache repopulation, rather than treating it as only a configuration change.<\/p>\n<h3><span id=\"2_Public_APIs_and_Mobile_Backends\">2. Public APIs and Mobile Backends<\/span><\/h3>\n<p>Public APIs often authenticate with JWTs or access tokens rather than browser sessions, reducing reliance on server side session storage. However, they can hit the cache very heavily for rate limiting, application values, feature flags, and aggregated responses.<\/p>\n<p>This refers to application data, not Laravel\u2019s compiled config\/route cache files. Token authentication can also have server-side checks; it is not automatically stateless in every application.<\/p>\n<p>Where the supported operations and measured workload fit, Redis can serve these roles:<\/p>\n<ul>\n<li>Application-cache lookups with measured latency and a failure policy<\/li>\n<li>Rate-limit counters through a supported framework store, with concurrency behavior verified<\/li>\n<li>Admin web sessions where a shared backend and its recovery policy meet the application\u2019s needs<\/li>\n<\/ul>\n<p>Memcached is also an option for cache lookups. Choose between it and Redis based on the operations and framework integrations the API needs, rather than assuming one always performs better.<\/p>\n<h3><span id=\"3_High_Traffic_SaaS_With_Background_Jobs\">3. High Traffic SaaS With Background Jobs<\/span><\/h3>\n<p>For a busy Laravel SaaS platform with queues, broadcasting, and multiple web servers, consider a design that keeps shared state outside individual app servers:<\/p>\n<ul>\n<li>Supported shared sessions with an explicit idle lifetime, cookie settings and concurrent-update plan<\/li>\n<li>Regenerable application cache with TTL\/invalidation and its own loss policy; separate instances when eviction\/resource policies must differ<\/li>\n<li>Redis queues monitored by Horizon when that integration is used. Horizon is not a generic monitor for other queue backends and Laravel 13 documentation excludes Redis Cluster.<\/li>\n<li>App nodes with matching keys\/configuration and shared state dependencies whose failover and recovery have been tested<\/li>\n<\/ul>\n<p>Alongside the earlier connection configuration, this production example uses a hypothetical 120-minute idle session lifetime and HTTPS cookies. HTTPS\/proxy handling must be correct. Merely naming a file <code>.env.production<\/code> or putting <code>APP_ENV=production<\/code> inside it does not select it: Laravel checks externally supplied APP_ENV or the CLI &#8211;env argument before loading that file, otherwise it uses .env.<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">APP_ENV=production\nAPP_DEBUG=false\n\nSESSION_DRIVER=redis\nSESSION_CONNECTION=session\nSESSION_STORE=redis\nSESSION_LIFETIME=120\nSESSION_SECURE_COOKIE=true\nSESSION_HTTP_ONLY=true\nSESSION_SAME_SITE=lax\n\nCACHE_STORE=redis\nREDIS_CACHE_CONNECTION=cache\nREDIS_CACHE_LOCK_CONNECTION=default\n\nQUEUE_CONNECTION=redis\nREDIS_QUEUE_CONNECTION=queue\n<\/code><\/pre>\n<p>Rebuild the verified configuration with <code>php artisan config:cache<\/code> as part of deployment; changing .env does not update an existing config cache. Plan how long-running workers\/Horizon receive the new configuration. A store migration does not automatically convert old session serialization or pending jobs; retain compatible APP_KEY\/cookie settings across nodes, plan continuity or controlled reauthentication, and validate rollback against newly written data.<\/p>\n<p>This is effectively the pattern we describe in <a href=\"https:\/\/www.dchost.com\/blog\/en\/laravel-vps-deployment-nginx-php-fpm-horizon\/\">our Laravel on VPS deployment guide<\/a>. One design option is to start with Redis on the application server and later move it to a separate node. Plan connection-setting changes, network access controls, and data migration before making that move.<\/p>\n<h3><span id=\"Quick_Decision_Checklist\">Quick Decision Checklist<\/span><\/h3>\n<p>If you are uncertain, this simple checklist often points in the right direction:<\/p>\n<ul>\n<li><strong>Single node:<\/strong> Files\/database may fit measured session\/cache needs; a WordPress site may not use native PHP sessions at all.<\/li>\n<li><strong>Dynamic store or Laravel app:<\/strong> Identify the actual session owner, assess object\/application-cache reuse and monitor resource\/connection errors.<\/li>\n<li><strong>Multiple nodes:<\/strong> Use a compatible shared-state design and test concurrent requests, node failure and deployment continuity.<\/li>\n<li><strong>Critical state:<\/strong> Select durability, isolation and recovery from acceptable loss and downtime; Redis, backups or a second server do not automatically satisfy them.<\/li>\n<\/ul>\n<h2><span id=\"Practical_Configuration_Tips_on_a_VPS_or_Dedicated_Server\">Practical Configuration Tips on a VPS or Dedicated Server<\/span><\/h2>\n<h3><span id=\"1_PHP_FPM_and_OPcache_Still_Matter\">1. PHP, FPM, and OPcache Still Matter<\/span><\/h3>\n<p>Switching to Redis will not fix a misconfigured PHP environment. Before or alongside changing session and cache storage, make sure:<\/p>\n<ul>\n<li>Use a PHP version supported by the application and dependencies; the Laravel 13 example requires PHP 8.3+. <a href=\"https:\/\/www.dchost.com\/blog\/en\/the-php-8-x-upgrade-checklist-the-friendly-guide-to-backwards-compatibility-opcache-preload-and-fpm-pool-tuning-for-wordpress-laravel\/\">PHP 8.x upgrade checklist for WordPress and Laravel<\/a> provides broader upgrade checks.<\/li>\n<li>Fit PHP-FPM concurrency to one shared memory budget; <a href=\"https:\/\/www.dchost.com\/blog\/en\/php-fpm-settings-for-wordpress-and-woocommerce-pm-pm-max-children-and-pm-max-requests\/\">PHP-FPM settings guide<\/a> is a related guide.<\/li>\n<li>Confirm OPcache behavior and workload needs. Check that the expected Redis\/Memcached client is installed in the actual PHP-FPM runtime, not just a different CLI binary.<\/li>\n<\/ul>\n<p>Evaluate these layers together. A backend change can help a measured storage bottleneck, but it does not replace correct application, PHP or database behavior.<\/p>\n<h3><span id=\"2_Baseline_Redis_Settings_for_Sessions_and_Cache\">2. Baseline Redis Settings for Sessions and Cache<\/span><\/h3>\n<p>For the standalone Redis example, record the existing settings and review each role\u2019s budget before making changes:<\/p>\n<ul>\n<li><strong>Isolation:<\/strong> Logical DBs and prefixes do not prevent cache pressure from affecting sessions\/queues in the same instance. Separate instances can use different policies, while still sharing the VPS\u2019s resources.<\/li>\n<li><strong>Memory:<\/strong> Budget Redis with PHP, the database, OS and persistence\/replication overhead. There is no universal 50\u201370% allocation rule; maxmemory is not the full process RSS limit.<\/li>\n<li><strong>Eviction:<\/strong> An allkeys policy such as <code>allkeys-lru<\/code> can suit disposable cache. <code>noeviction<\/code> rejects memory-growing writes instead of evicting for capacity; TTL expiry and application errors still require handling.<\/li>\n<li><strong>Persistence:<\/strong> Evaluate RDB\/AOF loss windows, backups and restoration against session\/job requirements, not just whether snapshots are enabled.<\/li>\n<li><strong>Access:<\/strong> Restrict Redis to intended trusted clients, configure ACL\/authentication, and verify required TLS for network links. Localhost or a private network alone does not settle all authorization needs.<\/li>\n<\/ul>\n<p><code>php artisan cache:clear redis<\/code> flushes the selected Redis cache store\u2019s DB, without limiting the deletion to its key prefix. In the earlier correctly mapped example, that is DB 1, not session DB 2 or queue DB 3. Other keys sharing DB 1 would be affected. Do not use production cache clearing as a diagnostic experiment.<\/p>\n<p>Monitor Redis memory usage, key counts, and latency. If you already use tools like Prometheus and Grafana for your VPS, add Redis exporters and alerts alongside CPU and disk metrics.<\/p>\n<p>For a separate native PHP session integration, the PhpRedis handler must be installed in the target SAPI. The following authenticated local example is not a Laravel session configuration and does not replace WooCommerce\u2019s handler. Replace the account\/password placeholders, URL-encoding the secret for the query string, and verify access before adoption:<\/p>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">session.save_handler = redis\nsession.save_path = &quot;tcp:\/\/127.0.0.1:6379?database=2&amp;prefix=PHPSESSID_&amp;auth[]=app&amp;auth[]=REPLACE_WITH_URL_ENCODED_PASSWORD&amp;timeout=2.5&quot;\nredis.session.locking_enabled = 1\n<\/code><\/pre>\n<p>PhpRedis session locking defaults off; this example enables it. Test lock lifetime, wait\/retry settings and request timeouts against the longest relevant request. Its documented locking support is for a single-master setup, not a general RedisArray\/Cluster guarantee. Native PHP session.gc_maxlifetime uses seconds; Laravel SESSION_LIFETIME uses minutes. A switch does not transfer existing sessions automatically.<\/p>\n<h3><span id=\"3_Memcached_Sizing_and_Key_Strategy\">3. Memcached Sizing and Key Strategy<\/span><\/h3>\n<p>If you choose Memcached for cache, keep these points in mind:<\/p>\n<ul>\n<li>Allocate memory within the same host budget used for PHP-FPM, the database and OS.<\/li>\n<li>Use application\/environment-specific keys for collision avoidance, without treating a prefix as an authorization or eviction boundary.<\/li>\n<li>Handle cache misses, evictions and connection errors separately; a missing value and an unavailable service need not have the same result.<\/li>\n<li>Restrict access to trusted clients and supported transports; do not expose Memcached directly to untrusted networks.<\/li>\n<\/ul>\n<p>A supported persistent object-cache integration can serve WordPress transients outside the database. Their expiry is a maximum lifetime, not a guaranteed minimum: values may disappear early and must be regenerable. Measure the actual hit rate and saved database work.<\/p>\n<h3><span id=\"4_Monitoring_and_Troubleshooting\">4. Monitoring and Troubleshooting<\/span><\/h3>\n<p>New storage layers can introduce new failure modes. Some practical tips:<\/p>\n<ul>\n<li>Log and alert on Redis or Memcached connection failures from PHP.<\/li>\n<li>Watch for spikes in PHP session start times or Laravel response times after enabling a new driver.<\/li>\n<li>Monitor VPS resources; our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/vps-resource-monitoring\/\">monitoring VPS resource usage with htop, iotop, Netdata and Prometheus<\/a> is a good starting point.<\/li>\n<\/ul>\n<p>If performance worsens, check the effective driver and endpoint, client timeouts, network access, cache misses\/evictions and host pressure together. Exercise login\/logout, CSRF\/forms, guest and signed-in carts, concurrent session writes, scoped cache clearing and planned restart\/recovery in staging; compare the same representative load before and after. Keep diagnostics access-controlled.<\/p>\n<h2><span id=\"Planning_Storage_on_DCHost_Infrastructure\">Planning Storage on DCHost Infrastructure<\/span><\/h2>\n<p>A possible progression, when measurements and operational needs justify it, is:<\/p>\n<ul>\n<li>Use a hosting plan that supports the application\u2019s actual session\/cache driver and appropriate storage lifecycle.<\/li>\n<li>Choose VPS control when required for PHP configuration or a dedicated cache service, verifying available resources and permissions.<\/li>\n<li>Separate roles when budgets or independent policies justify it; a separate Redis server still needs a tested availability\/recovery design.<\/li>\n<li>Evaluate dedicated hardware or colocation against costs and management responsibilities, with database, cache and application roles deliberately planned.<\/li>\n<\/ul>\n<p>Choose from traffic measurements, loss tolerance and operational support. Files can be adequate; Redis supports several useful state\/cache integrations; Memcached is an option when its supported features and loss behavior fit. Compare the complete design rather than assigning a universal winner.<\/p>\n<p>Record the current configuration and rollback path, map each session\/cache\/queue owner to its real connection, and test one change under representative load. Measure response and query times, cache hit\/miss, connection failures and resource demand. Preserve login, cart and job continuity during migration; use the linked WordPress and Laravel guides for their separate configuration scopes.<\/p>\n<h2><span id=\"Primary_Technical_References\">Primary Technical References<\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/laravel.com\/framework\/docs\/13.x\/redis\" rel=\"nofollow noopener\" target=\"_blank\">Laravel 13 \u2014 Redis<\/a><\/li>\n<li><a href=\"https:\/\/laravel.com\/framework\/docs\/13.x\/session\" rel=\"nofollow noopener\" target=\"_blank\">Laravel 13 \u2014 Sessions<\/a><\/li>\n<li><a href=\"https:\/\/laravel.com\/framework\/docs\/13.x\/cache\" rel=\"nofollow noopener\" target=\"_blank\">Laravel 13 \u2014 Cache<\/a><\/li>\n<li><a href=\"https:\/\/laravel.com\/framework\/docs\/13.x\/horizon\" rel=\"nofollow noopener\" target=\"_blank\">Laravel 13 \u2014 Horizon<\/a><\/li>\n<li><a href=\"https:\/\/redis.io\/docs\/latest\/commands\/select\/\" rel=\"nofollow noopener\" target=\"_blank\">Redis \u2014 SELECT and logical databases<\/a><\/li>\n<li><a href=\"https:\/\/redis.io\/docs\/latest\/develop\/reference\/eviction\/\" rel=\"nofollow noopener\" target=\"_blank\">Redis \u2014 Key eviction<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/phpredis\/phpredis\/blob\/6.3.0\/README.md#php-session-handler\" rel=\"nofollow noopener\" target=\"_blank\">PhpRedis \u2014 PHP session handler<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_object_cache\/\" rel=\"nofollow noopener\" target=\"_blank\">WordPress \u2014 Object Cache<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Separate native PHP sessions, WordPress object caching and Laravel stores. Compare files, Redis and Memcached, map Laravel 13 connections and plan data continuity, recovery and measured validation.<\/p>\n","protected":false},"author":1,"featured_media":12544,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-3547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/comments?post=3547"}],"version-history":[{"count":9,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3547\/revisions"}],"predecessor-version":[{"id":12546,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3547\/revisions\/12546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media\/12544"}],"wp:attachment":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media?parent=3547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/categories?post=3547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/tags?post=3547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}