Commits

Jason Hinch committed a8be600

SOY-30: Revert "JRADEV-23167 enabled soy template cache to be flushed externally. this thing usees 70Mb on JIRA and couldn't be flushed to reclaim RAM on unused instances. Work is part of Project Jeffersons phase 0 JIRA memory savings for datacentre runway extension"

This reverts commit c8a2f950d3cbedaff7ee3ccfb1d8ec648586b363.
The original commit was not implemented correctly and did not go through code review. Will follow it up with the correct implementation

  • Participants
  • Parent commits 7669298

Comments (0)

Files changed (3)

File soy-template-plugin/src/main/java/com/atlassian/soy/impl/DefaultSoyManager.java

 
 import static com.atlassian.soy.impl.DevMode.isDevMode;
 
+
 public class DefaultSoyManager implements SoyManager
 {
     private static final SoyTofu DIDNOTCOMPILE = new NullTofu();
         clearCaches(null);
     }
 
-    @Override
-    public void clearCaches(String completeModuleKey)
+    /**
+     * @param completeModuleKey if <code>null</code>, will clear entire soy tofu cache
+     */
+    private void clearCaches(String completeModuleKey)
     {
         soyDependencyInjectorFactory.clear();
         templateSetFactory.clear();
             return null;
         }
     }
+
 }

File soy-template-plugin/src/main/java/com/atlassian/soy/impl/SoyManager.java

      */
     void render(Appendable appendable, String completeModuleKey, String templateName,
                 Map<String, Object> data, Map<String, Object> injectedData) throws SoyException;
-
-    /**
-     * Clears the cache of the given module key or the entire cache if null.
-     *
-     * @param completeModuleKey if <code>null</code>, will clear entire soy tofu cache
-     */
-    void clearCaches(String completeModuleKey);
 }

File soy-template-plugin/src/main/resources/atlassian-plugin.xml

     <component-import key="moduleFactory" interface="com.atlassian.plugin.module.ModuleFactory" />
     <component-import key="httpContext" interface="com.atlassian.sal.api.web.context.HttpContext" />
 
-    <component key="soyManager" name="Soy Manager" class="com.atlassian.soy.impl.DefaultSoyManager" public="true">
+    <component key="soyManager" name="Soy Manager" class="com.atlassian.soy.impl.DefaultSoyManager">
         <interface>com.atlassian.soy.impl.SoyManager</interface>
     </component>