<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app]]></title><description><![CDATA[<p dir="auto">Hey!<br />
i’m using the WordPress app on Cloudron with the Redis Object Cache plugin.<br />
i’ve allocated 4 GB RAM to Redis, but it keeps filling up over time because there’s no TTL on the keys. i’d rather use Redis’s built-in eviction instead of fixed expirations, like allkeys-lru or allkeys-lfu, so it automatically removes least-used or oldest keys when full.</p>
<p dir="auto">i couldn’t find any option for eviction policy in the Cloudron UI or documentation.<br />
how can i set (or persist) maxmemory-policy allkeys-lru for the Redis instance that my WP app uses?<br />
and where is the redis.conf file located for that instance (if it’s editable from the terminal)?</p>
<p dir="auto">thanks!</p>
]]></description><link>https://forum.cloudron.io/topic/14395/how-to-set-redis-eviction-policy-e.g.-allkeys-lru-for-wordpress-app</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 01:58:28 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14395.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Oct 2025 15:02:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app on Tue, 25 Nov 2025 20:15:15 GMT]]></title><description><![CDATA[<p dir="auto">That would indeed be useful.</p>
]]></description><link>https://forum.cloudron.io/post/116033</link><guid isPermaLink="true">https://forum.cloudron.io/post/116033</guid><dc:creator><![CDATA[BLUBBERLUTSCH]]></dc:creator><pubDate>Tue, 25 Nov 2025 20:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app on Mon, 13 Oct 2025 13:48:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> said in <a href="/post/113708">How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miroo" aria-label="Profile: Miroo">@<bdi>Miroo</bdi></a> you can set define('WP_REDIS_MAXTTL', '900'); in your wp-config.php . See</p>
</blockquote>
<p dir="auto">Thanks but It's less efficient than changing Redis's own eviction policies, as you can set it in a way that it would delete the less used ones instead of just a general expiration for all of them.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> said in <a href="/post/113701">How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app</a>:</p>
<blockquote>
<p dir="auto">Right now it is not possible to configure the Redis service manually that comes with apps.<br />
The default setting for each redis service is:</p>
</blockquote>
<p dir="auto">Is it possible to get this settings in the future releases? it will be greatly appreciated!</p>
]]></description><link>https://forum.cloudron.io/post/113717</link><guid isPermaLink="true">https://forum.cloudron.io/post/113717</guid><dc:creator><![CDATA[Miroo]]></dc:creator><pubDate>Mon, 13 Oct 2025 13:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app on Mon, 13 Oct 2025 12:46:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miroo" aria-label="Profile: Miroo">@<bdi>Miroo</bdi></a> you can set <code>define('WP_REDIS_MAXTTL', '900');</code> in your wp-config.php . See <a href="https://github.com/rhubarbgroup/redis-cache/blob/main/README.md#configuration" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/rhubarbgroup/redis-cache/blob/main/README.md#configuration</a></p>
]]></description><link>https://forum.cloudron.io/post/113708</link><guid isPermaLink="true">https://forum.cloudron.io/post/113708</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 13 Oct 2025 12:46:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to set Redis eviction policy (e.g. allkeys-lru) for WordPress app on Mon, 13 Oct 2025 10:53:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/miroo" aria-label="Profile: Miroo">@<bdi>Miroo</bdi></a><br />
Right now it is not possible to configure the Redis service manually that comes with apps.<br />
The default setting for each redis service is:</p>
<pre><code>maxmemory-policy noeviction
</code></pre>
<p dir="auto">See: <a href="https://git.cloudron.io/platform/redis-addon/-/blob/master/redis.conf" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/platform/redis-addon/-/blob/master/redis.conf</a></p>
]]></description><link>https://forum.cloudron.io/post/113701</link><guid isPermaLink="true">https://forum.cloudron.io/post/113701</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 13 Oct 2025 10:53:42 GMT</pubDate></item></channel></rss>