<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Add caching to autoloader</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10396</link> 
  <atom:link rel="self" type="application/rss+xml" title="Add caching to autoloader" href="https://bugs.horde.org/ticket/10396/rss" /> 
  <description>Add caching to autoloader</description> 
 
   
   
  <item> 
   <title>For most page requests, loading all the PHP files through th</title> 
   <description>For most page requests, loading all the PHP files through the autoloader is the most expensive operation now. The actual file loading can be improved by using a bytecode cache. Even more expensive is the class name to file path mapping though, especially the regular expressions.
The idea is to store this map directly, i.e. without using Horde_Cache for obvious reasons, in a cache. Since users interested in speeding up the file loading are using APC or similar anyway, the autoloader should use such a bytecode cache for caching the map too, if the extension supports arbitrary caching.</description> 
   <pubDate>Fri, 29 Jul 2011 16:53:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t66652</link> 
  </item> 
   
  <item> 
   <title>POC, works pretty well, still needs a way to invalidate the </title> 
   <description>POC, works pretty well, still needs a way to invalidate the cache.</description> 
   <pubDate>Fri, 29 Jul 2011 21:52:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t66653</link> 
  </item> 
   
  <item> 
   <title>&gt; POC, works pretty well, still needs a way to invalidate th</title> 
   <description>&gt; POC, works pretty well, still needs a way to invalidate the cache.

What about providing a *very* basic temp file fallback if none of these caching backends are available?  (e.g. using sys_get_temp_dir(), file_get_contents(), and file_put_contents()).</description> 
   <pubDate>Mon, 01 Aug 2011 20:10:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t66692</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; POC, works pretty well, still needs a way to invalidate t</title> 
   <description>&gt;&gt; POC, works pretty well, still needs a way to invalidate the cache.
&gt;
&gt; What about providing a *very* basic temp file fallback if none of 
&gt; these caching backends are available?  (e.g. using 
&gt; sys_get_temp_dir(), file_get_contents(), and file_put_contents()).

http://git.horde.org/horde-git/-/commit/192c56b7c64ad886b25ae4fb250eb853e310ff01</description> 
   <pubDate>Tue, 06 Sep 2011 16:52:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t67331</link> 
  </item> 
   
  <item> 
   <title>One solution could be to make this a separate non-dependant </title> 
   <description>One solution could be to make this a separate non-dependant package, and make the package class decorating the original default autoloader. Admins would have to explicitly install this package to enable autoloader caching, thus we won&#039;t need any configuration to disable it, and we can make it the admin&#039;s job to take care of cache cleaning if necessary. A small script could help with that.
In Horde, we would check if this package&#039;s class file exist, and load that, otherwise fall back to the default autoloader.
Does anybody see any issues with this approach?</description> 
   <pubDate>Fri, 16 Sep 2011 15:46:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t67542</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Add Autoload</title> 
   <description>Changes have been made in Git for this ticket:

Add Autoloader_Cache library to cache class maps from the Autoloader package (Request #10396).

 3 files changed, 609 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/351190d0cd4e7ae85690fab2b861b6263cda23d6</description> 
   <pubDate>Mon, 14 Nov 2011 05:03:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10396#t68802</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
