Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r19285: LJSV-1631: Need a hook to purge varnish ...

Committer: amyshkin
LJSV-1631: Need a hook to purge varnish cache of lastn page (main page) or all pages upon account level change
U   trunk/htdocs/customize/switch_system.bml
Modified: trunk/htdocs/customize/switch_system.bml
===================================================================
--- trunk/htdocs/customize/switch_system.bml	2011-06-15 04:51:41 UTC (rev 19284)
+++ trunk/htdocs/customize/switch_system.bml	2011-06-15 07:07:17 UTC (rev 19285)
@@ -26,10 +26,12 @@
         if ($POST{s2}) {
             $u->set_prop('stylesys', 2);
             $u->set_prop('s1_confirmed', 0);
+            LJ::run_hooks('apply_theme', $u);
             return BML::redirect("$LJ::SITEROOT/customize/$getextra");
         } elsif ($POST{s1}) {
             $u->set_prop('stylesys', 1);
             $u->set_prop('s1_confirmed', time());
+            LJ::run_hooks('apply_theme', $u);
             return BML::redirect("$LJ::SITEROOT/customize/s1/$getextra");
         }
     }

Tags: bml, livejournal, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments